themes/hyde: Add tags to each post
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
f7e38ecb19
commit
e5e57b3548
|
@ -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>
|
||||
|
||||
|
|
|
@ -77,6 +77,10 @@ a:focus {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: #757575;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: .5rem;
|
||||
|
|
Loading…
Reference in New Issue