diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-06 11:23:12 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-06 11:23:12 +0800 |
| commit | dbb3c7471c5183c9a5eaef44966073f312f0701d (patch) | |
| tree | 1405dbdca76bc5057a6d0e7dd2a06d4134d9fced | |
| parent | f0e60cf1b86422285ca0ae2f1b663e34b6f7524b (diff) | |
style: add horizontal rule to term page
Former-commit-id: 7eabfa47b266548e058f1cb0dfd0dfb7590811e0
| -rw-r--r-- | assets/css/components/_pages.scss | 4 | ||||
| -rw-r--r-- | layouts/_default/term.html | 5 |
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"> |
