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

github.com/joway/hugo-theme-yinyang.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoway.CI <joway.w@gmail.com>2021-06-15 06:29:40 +0300
committerJoway.CI <joway.w@gmail.com>2021-06-15 06:29:40 +0300
commitd56e2869fc5cb1cdd3bdfe54fff31e7277a19ac3 (patch)
tree99a0ecaaa3e06c04a5a1001d5e3cdd5e0f304ed8
parent17d6c918107e4aced5e3a8b5415895ceaa97a7bb (diff)
feat: support tags
-rw-r--r--assets/css/index.css3
-rw-r--r--layouts/_default/single.html6
2 files changed, 5 insertions, 4 deletions
diff --git a/assets/css/index.css b/assets/css/index.css
index a21a83c..6c6c32d 100644
--- a/assets/css/index.css
+++ b/assets/css/index.css
@@ -161,10 +161,11 @@ a:hover {
font-weight: 600;
}
-.post-category {
+.post-tags {
display: inline;
font-weight: 600;
padding: 2px 5px;
+ margin-right: 6px;
border: #000 2px solid;
border-radius: 5px;
}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fa7dd69..815a0d4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -38,9 +38,9 @@
<div class="row middle-xs">
<div class="col-xs-12">
- {{ range .Params.categories }}
- <div class="post-category">
- <a href="{{ site.LanguagePrefix }}/categories/{{ lower . }}/">
+ {{ range .Params.tags }}
+ <div class="post-tags">
+ <a href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">
{{ . }}
</a>
</div>