Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemysław Kołodziejczyk <eshlox@users.noreply.github.com>2019-10-01 23:39:32 +0300
committerGitHub <noreply@github.com>2019-10-01 23:39:32 +0300
commit292097ef71d6f8871b321dd81c8de1973eaffccb (patch)
tree321227866fe2b4e68ab9641754275658f162b213
parent5f9c3d3aa8d1cba27454b27c456dd316a1dd684d (diff)
parentcfa76990e18ad51d07f7753c4d44e21119359b8a (diff)
Merge pull request #17 from hexandcube/master
Hide bullet if no category is set
-rw-r--r--layouts/_default/single.html4
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>
- &bull;
- {{- if .Params.categories }}
+ {{- if .Params.categories }}
+ &bull;
{{ range $index, $category := .Params.categories }}
{{ if gt $index 0 }}, {{ end }}
<a href="{{ $.LanguagePrefix }}{{ "/categories/" | relURL }}{{ . | urlize }}">{{- upper . -}}</a>