We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 392693b commit fd48ce4Copy full SHA for fd48ce4
2 files changed
settings.yaml
@@ -33,6 +33,11 @@ spec:
33
name: top_search
34
label: 开启搜索功能
35
value: true
36
+ - $formkit: checkbox
37
+ name: post_author
38
+ id: post_author
39
+ label: 首页文章列表显示作者
40
+ value: true
41
- $formkit: select
42
name: post_list_style
43
id: post_list_style
templates/macro/content-thumb.html
@@ -26,6 +26,15 @@
26
<div class="post-content-wrap">
27
<div class="post-date flex-child-center">
28
<span class="iconify" data-icon="solar:clock-circle-linear"></span>
29
+ <span th:if="${theme.config.general.post_author}">
30
+ <a
31
+ data-pjax
32
+ th:href="${post.owner.permalink}"
+ th:text="${post.owner.displayName}"
+ aria-label="viewing the author the article belongs to"
+ >
+ </a>
+ </span>
<time
class="publish-time"
data-i18n="postlist.time"
0 commit comments