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:
authorMikoĊ‚aj Zaremba <mikolajzaremba03@gmail.com>2019-09-30 15:23:17 +0300
committerGitHub <noreply@github.com>2019-09-30 15:23:17 +0300
commitcfa76990e18ad51d07f7753c4d44e21119359b8a (patch)
tree321227866fe2b4e68ab9641754275658f162b213
parent5f9c3d3aa8d1cba27454b27c456dd316a1dd684d (diff)
Hide bullet if no category is set
Moved '&bull;' above '{{- if .Params.categories }}'
-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>