mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 00:56:34 -05:00
Display tags on single.html
This commit is contained in:
parent
3a954f9c96
commit
e69f90733e
1 changed files with 11 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue