diff options
author | FFRaycoder <nn_201312@163.com> | 2020-05-24 09:12:33 +0300 |
---|---|---|
committer | FFRaycoder <nn_201312@163.com> | 2020-05-24 09:12:33 +0300 |
commit | b3b65024d63946f9607630285f4f98b2652bb1c6 (patch) | |
tree | 4cc62dd1185d54e2476bebfa7b0a14db13168258 | |
parent | 9a84aeb8b216a049e9f35fa75f48d57a8b8613ad (diff) |
statusCate
-rw-r--r-- | layouts/partials/components/home/eachpost.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html index 27d7b5e..522f136 100644 --- a/layouts/partials/components/home/eachpost.html +++ b/layouts/partials/components/home/eachpost.html @@ -1,5 +1,5 @@ {{ if .Params.Categories }}
- {{ if not .Params.buy }}
+ {{ if not (or .Params.buy .Params.status) }}
{{ if .Params.categoryLink }}
<div>
<a href="{{ .Params.categoryLink }}" class="img-cate list-normal-tag" style="color: rgba(255, 152, 0, 0.83) !important;">
@@ -54,12 +54,18 @@ <h3 class="article-list-content article-status">{{ .Content | plainify}}</h3>
{{ end }}
<div class="article-list-footer">
+ <span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
{{ if .Params.buy }}
{{ if .Params.Categories }}
- <a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
<span class="article-list-divider">-</span>
+ <a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
{{ end }}
+ {{ else if .Params.status}}
+ <span class="article-list-divider">-</span>
+ <span class="article-list-minutes">
+ <i class="ri-contrast-2-line"></i>
+ 状态 | {{ .Params.statusCate }}
+ </span>
{{ end }}
- <span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
</div>
</div>
\ No newline at end of file |