summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-21 09:38:19 +0800
committerEltrac <hi@guhub.cn>2024-12-21 09:38:19 +0800
commitbae742edd4a53654b1488b8ed422f97dca9bd1d1 (patch)
treedc6950dbd75484488fa4b261436d5e3e79e1602e
parent590c74d2c0faa04dc1a6ffe8e79a54a0f0362646 (diff)
feat: add post tags
-rw-r--r--assets/css/index.css14
-rw-r--r--layouts/_default/single.html16
2 files changed, 11 insertions, 19 deletions
diff --git a/assets/css/index.css b/assets/css/index.css
index 854343d1..e07b55c3 100644
--- a/assets/css/index.css
+++ b/assets/css/index.css
@@ -15,6 +15,7 @@
/* fonts */
--mono-font-family: "Courier New", Courier, "Menlo", "Monaco", Consolas, "Liberation Mono", "Lucida Console", monospace;
--serif-font-family: "Noto Serif SC", serif;
+ --content-font-size: 20px;
/* waline */
--waline-font-size: 20px;
@@ -78,7 +79,7 @@ a:hover {
}
.markdown-body {
- font-size: 20px;
+ font-size: var(--content-font-size);
max-width: 100%;
}
@@ -282,13 +283,10 @@ a:hover {
font-size: 1.2rem;
}
-.post-tags {
- display: inline;
- font-weight: 600;
- padding: 2px 5px;
- margin-right: 6px;
- border: var(--text-color) 2px solid;
- border-radius: 5px;
+.post-tags a {
+ display: inline-block;
+ color: var(--secondary-text-color);
+ font-size: var(--content-font-size);
}
.post-date {
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 45c7e310..06a9b7a0 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -40,17 +40,11 @@
</div>
<!-- Post Tags -->
- <!-- <div class="row middle-xs">
- <div class="col-xs-12">
- {{ range .Params.tags }}
- <div class="post-tags">
- <a href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">
- {{ . }}
- </a>
- </div>
- {{ end }}
- </div>
- </div> -->
+ <div class="post-tags">
+ {{ range .Params.tags }}
+ <a href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">{{ . }}</a>
+ {{ end }}
+ </div>
<!-- Post Comments -->
{{ if in .Site.Params.mainSections .Type }}