diff options
| author | verdant <i@glowisle.me> | 2026-02-23 15:31:26 +0800 |
|---|---|---|
| committer | verdant <i@glowisle.me> | 2026-02-23 15:31:26 +0800 |
| commit | a220a15d80ac9528b29a028f29f079aae1beeee7 (patch) | |
| tree | 45c4a15ecd3d9370f2b26acd04952f1fa8784751 | |
| parent | 6a4ea875660a7b8f83938852db7dac93dce2fdcc (diff) | |
| download | blog-a220a15d80ac9528b29a028f29f079aae1beeee7.tar.gz blog-a220a15d80ac9528b29a028f29f079aae1beeee7.zip | |
style: modify the style of post title
- h3 -> h2
- change all to 1.25em
| -rw-r--r-- | hugo.toml | 1 | ||||
| -rw-r--r-- | layouts/_default/single.html | 4 | ||||
| -rw-r--r-- | layouts/partials/style.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/recent-posts.html | 4 |
4 files changed, 5 insertions, 6 deletions
@@ -15,7 +15,6 @@ copyright = "Copyright © 2024, GlowIsle." protocol = "http://" path = "" # 保持路径在根目录 - [markup.goldmark.renderer] unsafe = true diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2a30a14..6b3f0a4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,9 +2,9 @@ <header>{{- partial "header.html" . -}}</header> <article class="h-entry"> -<h3 class="post-title"> +<h2 class="post-title"> <a href="{{ .RelPermalink }}" class="item-link">{{ .Title }}</a> - </h3> +</h2> <div class="e-content">{{ .Content }}</div> </article> diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 1d56e37..f56ed7b 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -57,7 +57,7 @@ flex: 1; overflow: hidden; text-overflow: ellipsis; - font-size: 1.6em; + font-size: 1.25em; word-wrap: break-word; white-space: normal; word-wrap: break-word; diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index b1e891e..b2a6637 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -11,9 +11,9 @@ word-wrap: break-word; <div class="recent-posts"> {{ if $recent }} {{ range $index, $page := $recent }} <div class="recent-posts-item"> - <h3 class="recent-post-title"> + <h2 class="recent-post-title post-title"> <a href="{{ .RelPermalink }}" class="item-link">{{ .Title }}</a> - </h3> + </h2> <div class="summary">{{ .Summary }}</div> {{ partial "post_meta.html" . }} |
