diff --git a/_config.yml b/_config.yml
index fa2a2431..765f77fb 100755
--- a/_config.yml
+++ b/_config.yml
@@ -122,6 +122,7 @@ home_banner:
text: [] # subtitle text, array
hitokoto: # 一言配置
enable: false # Whether to enable hitokoto
+ show_author: false # Whether to show author
api: https://v1.hitokoto.cn # API URL, can add types, see https://developer.hitokoto.cn/sentence/#%E5%8F%A5%E5%AD%90%E7%B1%BB%E5%9E%8B-%E5%8F%82%E6%95%B0
typing_speed: 100 # Typing speed (ms)
backing_speed: 80 # Backing speed (ms)
diff --git a/layout/_widgets/essays.ejs b/layout/_widgets/essays.ejs
index f0e265da..29171e0a 100644
--- a/layout/_widgets/essays.ejs
+++ b/layout/_widgets/essays.ejs
@@ -10,7 +10,7 @@
<%- image_tag(theme.defaults.avatar, {class: "w-full h-full rounded-[6.2px]"}) %>
-
<%- moment(e.date).locale(config.language).calendar() %>
+
<%- moment(e.date).utc().locale(config.language).calendar() %>
<%- markdown(e.content) %>
diff --git a/source/js/plugins/typed.js b/source/js/plugins/typed.js
index 7b8a115e..3977e931 100644
--- a/source/js/plugins/typed.js
+++ b/source/js/plugins/typed.js
@@ -38,7 +38,11 @@ export default function initTyped(id) {
fetch(usrHitokotoAPI)
.then((response) => response.json())
.then((data) => {
- typing(data.hitokoto);
+ if (data.from_who && theme.home_banner.subtitle.hitokoto.show_author) {
+ typing(data.hitokoto + "——" + data.from_who);
+ } else {
+ typing(data.hitokoto);
+ }
})
.catch(console.error);
} else {