diff options
author | MikoĊaj Zaremba <mikolajzaremba03@gmail.com> | 2019-09-30 15:23:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 15:23:17 +0300 |
commit | cfa76990e18ad51d07f7753c4d44e21119359b8a (patch) | |
tree | 321227866fe2b4e68ab9641754275658f162b213 | |
parent | 5f9c3d3aa8d1cba27454b27c456dd316a1dd684d (diff) |
Hide bullet if no category is set
Moved '•' above '{{- if .Params.categories }}'
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6fec0b9..09d66df 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,8 +5,8 @@ <time datetime="{{ .Date.Format "2006-01-02 15:04:05-0700" }}"> {{- .Date.Format "2006-01-02" -}} </time> - • - {{- if .Params.categories }} + {{- if .Params.categories }} + • {{ range $index, $category := .Params.categories }} {{ if gt $index 0 }}, {{ end }} <a href="{{ $.LanguagePrefix }}{{ "/categories/" | relURL }}{{ . | urlize }}">{{- upper . -}}</a> |