Updating post html

Moving tags to top of page
This commit is contained in:
2020-05-04 03:37:33 +01:00
parent 4e690ded74
commit a1e53a7563

View File

@@ -32,13 +32,9 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- with $page.Params.tags -}}
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-lg-8"> <div class="col-lg-8">
<div class="content">
{{ $page.Content }}
</div>
{{- with $page.Params.tags -}}
<div class="tags my-3"> <div class="tags my-3">
{{- range . -}} {{- range . -}}
<a class="badge badge-pill badge-light border mr-2" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}"> <a class="badge badge-pill badge-light border mr-2" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
@@ -46,8 +42,26 @@
</a> </a>
{{- end -}} {{- end -}}
</div> </div>
</div>
</div>
{{- end -}} {{- end -}}
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="content">
{{ $page.Content }}
</div>
<!-- {{- with $page.Params.tags -}}
<div class="tags my-3">
{{- range . -}}
<a class="badge badge-pill badge-light border mr-2" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
<i class="fas fa-tag mr-2"></i>{{ . }}
</a>
{{- end -}}
</div>
{{- end -}} -->
{{ partial "sharer.html" . }} {{ partial "sharer.html" . }}
</div> </div>
</div> </div>