summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorverdant <i@glowisle.me>2026-02-23 15:31:26 +0800
committerverdant <i@glowisle.me>2026-02-23 15:31:26 +0800
commita220a15d80ac9528b29a028f29f079aae1beeee7 (patch)
tree45c4a15ecd3d9370f2b26acd04952f1fa8784751 /layouts
parent6a4ea875660a7b8f83938852db7dac93dce2fdcc (diff)
downloadblog-a220a15d80ac9528b29a028f29f079aae1beeee7.tar.gz
blog-a220a15d80ac9528b29a028f29f079aae1beeee7.zip
style: modify the style of post title
- h3 -> h2 - change all to 1.25em
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/style.html2
-rw-r--r--layouts/shortcodes/recent-posts.html4
3 files changed, 5 insertions, 5 deletions
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" . }}