Support categories

Fixes #31
This commit is contained in:
BBaoVanC 2021-10-18 14:17:16 -05:00
parent f56b9028b3
commit 3e799b0418
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
<div class="post">
<h2 class="post-title">
{{ range .Params.categories }}
<code>{{ . }}</code>
{{ end }}
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}