mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-25 01:26:31 -05:00
Don't add tags div if there aren't any tags
This commit is contained in:
parent
fa8ad522cc
commit
e7a39ea0aa
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
||||||
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
||||||
<!-- tags -->
|
<!-- tags -->
|
||||||
|
{{ if .Param "tags" }}
|
||||||
<div id="tags">
|
<div id="tags">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Param "tags" }}
|
{{ range .Param "tags" }}
|
||||||
|
@ -15,6 +16,8 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
<!-- content -->
|
<!-- content -->
|
||||||
<div id="contentBody">
|
<div id="contentBody">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
Loading…
Reference in a new issue