diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-06 11:02:31 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-06 11:02:31 +0800 |
| commit | 3ec7ebbcb97139d8148463fbe1ca8c82e03119b6 (patch) | |
| tree | 46e9587d8d91a077a2252f7faaade7dbccbef162 | |
| parent | f03ef33427d6e460ee7ef855bf7e0a5468b49a40 (diff) | |
feat: add description to term page
Former-commit-id: 8db98661dc41df6afd02b0448c3589dad7e816d7
| -rw-r--r-- | content/categories/稻草人周刊/_index.md | 4 | ||||
| -rw-r--r-- | layouts/_default/term.html | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/content/categories/稻草人周刊/_index.md b/content/categories/稻草人周刊/_index.md new file mode 100644 index 00000000..dbd5d8e3 --- /dev/null +++ b/content/categories/稻草人周刊/_index.md @@ -0,0 +1,4 @@ +--- +title: 稻草人周刊 +description: 一个读者的自述,每周一更新。 +--- diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 82787dac..cc09f547 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -2,6 +2,10 @@ <article class="posts termlist-page"> {{ partial "components/breadcrumbs.html" . }} + {{ with .Params.description }} + <p class="taxonomy-description markdown-body">{{ . | markdownify }}</p> + {{ end }} + <div id="term-list" class="posts-list"> <ul> {{ range .Pages }} |
