diff options
| -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" . }} |
