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-24 09:19:48 +0300
committerFFRaycoder <nn_201312@163.com>2020-05-24 09:19:48 +0300
commitf3f2fb573743fc8e85de3842391bd37f9401642e (patch)
treef3e8fc98ab8efbdf6ffb1627a94890aa89b2ce05
parentb3b65024d63946f9607630285f4f98b2652bb1c6 (diff)
small bugs
-rw-r--r--layouts/partials/components/home/eachpost.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html
index 522f136..7c4c942 100644
--- a/layouts/partials/components/home/eachpost.html
+++ b/layouts/partials/components/home/eachpost.html
@@ -1,19 +1,5 @@
{{ if .Params.Categories }}
- {{ 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;">
- <b>{{ delimit .Params.Categories " | " }}</b>
- </a>
- </div>
- {{ else }}
- <div>
- <em class="article-list-type1">
- <b>{{ delimit .Params.Categories " | " }}</b>
- </em>
- </div>
- {{ end }}
- {{ else }}
+ {{ if .Params.buy }}
<div>
<div class="buy-list-item">
<div class="buy-left-img-noborder">
@@ -42,6 +28,19 @@
</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 }}
+ <div>
+ <em class="article-list-type1">
+ <b>{{ delimit .Params.Categories " | " }}</b>
+ </em>
+ </div>
+ {{ end }}
{{ end }}
{{ end }}
<div>
@@ -56,11 +55,12 @@
<div class="article-list-footer">
<span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
{{ if .Params.buy }}
- {{ if .Params.Categories }}
+ {{ if and ((not .Params.categoryLink) .Params.Categories) }}
<span class="article-list-divider">-</span>
<a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
{{ end }}
- {{ else if .Params.status}}
+ {{ end }}
+ {{ if .Params.status}}
<span class="article-list-divider">-</span>
<span class="article-list-minutes">
<i class="ri-contrast-2-line"></i>