feat: add tag list to post header

This commit is contained in:
cgiacomi 2019-10-12 09:27:08 +02:00
parent 3bceb9f94e
commit 9f5e251feb
2 changed files with 19 additions and 0 deletions

View File

@ -8,6 +8,17 @@
<div class="post-header">
<h1 class="title">{{ .Title }}</h1>
<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 class="markdown">

View File

@ -279,6 +279,14 @@ ul {
margin: 0;
}
.post .post-header .post-tags {
padding-left: 5px;
}
.post .post-header .post-tags a {
margin-right: 5px;
}
.post .post-header .meta {
padding-left: 5px;
margin-top: 10px;