diff options
author | FFRaycoder <nn_201312@163.com> | 2020-05-22 14:58:58 +0300 |
---|---|---|
committer | FFRaycoder <nn_201312@163.com> | 2020-05-22 14:58:58 +0300 |
commit | 759c622f8dc8d23e68d8c24de5962e0b85857690 (patch) | |
tree | 127e9eac0abca3b67a731a49905855df607a34f1 | |
parent | f12992140a1b0e4be5c02559573fc84d7c461f64 (diff) |
fixed non-categorie buy link bug
-rw-r--r-- | layouts/partials/components/home/eachpost.html | 6 |
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>
|