diff options
author | Shea Polansky <shea@polansky.co> | 2020-03-22 05:42:36 +0300 |
---|---|---|
committer | Shea Polansky <shea@polansky.co> | 2020-03-22 23:28:34 +0300 |
commit | e7a39ea0aa532e6fb9307b1f973601e2f2c7a1b1 (patch) | |
tree | b5167fe61a155208d5584f45ec0f807979c9ef4c | |
parent | fa8ad522cc1cb523c72530248d6fdb1da41a0c79 (diff) |
Don't add tags div if there aren't any tags
-rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d05c8e2..4d1688f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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 }} |