Skip to content

Commit 85a912a

Browse files
committed
Add about_extra_description option for posts.
1 parent a9ea6db commit 85a912a

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.changeset/silly-news-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hexo-theme-cupertino': minor
3+
---
4+
5+
Add `about_extra_description` option for posts.

layout/post.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<% }) %>
4848
</p>
4949
<% } %>
50+
<% if (page.about_extra_description) { %><div class="extra"><%- page.about_extra_description %></div><% } %>
5051
</div>
5152
<% } %>
5253

source/css/post.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ body {
301301
margin: 6px 0;
302302
}
303303
}
304+
305+
& > .extra {
306+
font-size: 15px;
307+
}
304308
}
305309

306310
#{$content} {

0 commit comments

Comments
 (0)