diff options
author | Przemysław Kołodziejczyk <eshlox@users.noreply.github.com> | 2019-10-01 23:39:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 23:39:32 +0300 |
commit | 292097ef71d6f8871b321dd81c8de1973eaffccb (patch) | |
tree | 321227866fe2b4e68ab9641754275658f162b213 | |
parent | 5f9c3d3aa8d1cba27454b27c456dd316a1dd684d (diff) | |
parent | cfa76990e18ad51d07f7753c4d44e21119359b8a (diff) |
Merge pull request #17 from hexandcube/master
Hide bullet if no category is set
-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> |