summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-06 11:23:12 +0800
committerEltrac <hi@guhub.cn>2025-02-06 11:23:12 +0800
commit7eabfa47b266548e058f1cb0dfd0dfb7590811e0 (patch)
tree479125cd5c6b166485fff49f037712ebfd29a1f6
parent56fc3d86eb5890841a85bc6c50b1de7d95ced3fa (diff)
style: add horizontal rule to term page
-rw-r--r--assets/css/components/_pages.scss4
-rw-r--r--layouts/_default/term.html5
2 files changed, 8 insertions, 1 deletions
diff --git a/assets/css/components/_pages.scss b/assets/css/components/_pages.scss
index 1ba9d6e8..e3c9657b 100644
--- a/assets/css/components/_pages.scss
+++ b/assets/css/components/_pages.scss
@@ -212,6 +212,10 @@ section.taxonomy {
}
}
+.taxonomy-description hr {
+ margin: 0.5rem 0;
+}
+
@media screen and (max-width: 600px) {
.posts-line {
font-size: 16px;
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index cc09f547..2c23cb5b 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -3,7 +3,10 @@
{{ partial "components/breadcrumbs.html" . }}
{{ with .Params.description }}
- <p class="taxonomy-description markdown-body">{{ . | markdownify }}</p>
+ <div class="taxonomy-description markdown-body">
+ {{ . | markdownify }}
+ <hr />
+ </div>
{{ end }}
<div id="term-list" class="posts-list">