mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 07:46:30 -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"}}
|
||||
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
||||
<!-- tags -->
|
||||
{{ if .Param "tags" }}
|
||||
<div id="tags">
|
||||
<ul>
|
||||
{{ range .Param "tags" }}
|
||||
|
@ -15,6 +16,8 @@
|
|||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<!-- content -->
|
||||
<div id="contentBody">
|
||||
{{ .Content }}
|
||||
|
|
Loading…
Reference in a new issue