diff options
author | FFRaycoder <nn_201312@163.com> | 2020-05-24 09:28:25 +0300 |
---|---|---|
committer | FFRaycoder <nn_201312@163.com> | 2020-05-24 09:28:25 +0300 |
commit | 817259edb690fddf8d6c6911278cc135ac5f36f4 (patch) | |
tree | 7698a942f77c095fd8750c09357d908b121efa1f | |
parent | 50aa99b48d9159b55b4fe2553fa94ab76b78e022 (diff) |
just a small bug please
-rw-r--r-- | layouts/partials/components/home/eachpost.html | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html index f298924..1993b3a 100644 --- a/layouts/partials/components/home/eachpost.html +++ b/layouts/partials/components/home/eachpost.html @@ -28,18 +28,20 @@ </div>
</div>
</div>
- {{ if .Params.categoryLink }}
- <div>
- <a href="{{ .Params.categoryLink }}" class="img-cate list-normal-tag" style="color: rgba(255, 152, 0, 0.83) !important;">
- <b>{{ delimit .Params.Categories " | " }}</b>
- </a>
- </div>
- {{ else if not .Params.statusCate }}
- <div>
- <em class="article-list-type1">
- <b>{{ delimit .Params.Categories " | " }}</b>
- </em>
- </div>
+ {{ if not .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;">
+ <b>{{ delimit .Params.Categories " | " }}</b>
+ </a>
+ </div>
+ {{ else }}
+ <div>
+ <em class="article-list-type1">
+ <b>{{ delimit .Params.Categories " | " }}</b>
+ </em>
+ </div>
+ {{ end }}
{{ end }}
{{ end }}
{{ end }}
|