fix: move tags to bottom of post

This commit is contained in:
cgiacomi 2019-10-12 17:39:40 +02:00
parent 4ccf226f91
commit 470638b4bc
2 changed files with 13 additions and 16 deletions

View File

@ -8,23 +8,24 @@
<div class="post-header"> <div class="post-header">
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}</div> <div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}</div>
<div class="post-tags">
<small>
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ end }}
</small>
</div>
</div> </div>
<div class="markdown"> <div class="markdown">
{{ .Content }} {{ .Content }}
</div> </div>
<div class="post-tags">
<small>
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ end }}
</small>
</div>
{{- $.Scratch.Set "isDisqus" true -}} {{- $.Scratch.Set "isDisqus" true -}}
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}} {{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}

View File

@ -279,11 +279,7 @@ ul {
margin: 0; margin: 0;
} }
.post .post-header .post-tags { .post-tags a {
padding-left: 5px;
}
.post .post-header .post-tags a {
margin-right: 5px; margin-right: 5px;
} }