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

github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFFRaycoder <nn_201312@163.com>2020-05-22 14:58:58 +0300
committerFFRaycoder <nn_201312@163.com>2020-05-22 14:58:58 +0300
commit759c622f8dc8d23e68d8c24de5962e0b85857690 (patch)
tree127e9eac0abca3b67a731a49905855df607a34f1
parentf12992140a1b0e4be5c02559573fc84d7c461f64 (diff)
fixed non-categorie buy link bug
-rw-r--r--layouts/partials/components/home/eachpost.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html
index 761929e..7a830b8 100644
--- a/layouts/partials/components/home/eachpost.html
+++ b/layouts/partials/components/home/eachpost.html
@@ -55,8 +55,10 @@
{{ end }}
<div class="article-list-footer">
{{ if .Params.buy }}
- <a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
- <span class="article-list-divider">-</span>
+ {{ if .Categories }}
+ <a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
+ <span class="article-list-divider">-</span>
+ {{ end }}
{{ end }}
<span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
</div>