Implemented tags in blog type and removed from default

This commit is contained in:
Brandon Rozek 2020-02-16 17:29:11 -05:00
parent d63dee8bf4
commit b490470a71
8 changed files with 44 additions and 25 deletions

View file

@ -4,6 +4,17 @@
<!-- date -->
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
<!-- tags -->
<div id="tags">
<ul>
{{ range .Param "tags" }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
<!-- content -->
<div id="contentBody">
{{ .Content }}