themes/hyde: Add tags to each post

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-12-26 13:08:06 +05:30
parent f7e38ecb19
commit e5e57b3548
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,11 @@
{{ define "main" -}}
<div class="post">
<h1>{{ .Title }}</h1>
<p class="post-date"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "January 2, 2006" }}</time> | ~{{ .ReadingTime }} min read</p>
<p class="post-date"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "January 2, 2006" }}</time> | ~{{ .ReadingTime }} min read |
{{ range .Params.tags }}
<span class="tag"><a class="tag" href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{.}}</a> </span>
{{ end }}
</p>
{{ .Content }}
</div>

View File

@ -77,6 +77,10 @@ a:focus {
text-decoration: underline;
}
.tag {
color: #757575;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
margin-bottom: .5rem;