summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-08-18 17:07:21 +0800
committerEltrac <hi@guhub.cn>2025-08-18 17:07:21 +0800
commit07d3790e125a64d9516a0eb64508309f38797cba (patch)
tree0741c0125574f00da874b15f69c1bdeef48fdecc
parent9cfe37ed9205d4da5fcc5a6b5b9b95640b766c04 (diff)
feat: add email info before comment section
-rw-r--r--config/_default/params.yaml1
-rw-r--r--i18n/en.yml1
-rw-r--r--i18n/zh.yml1
-rw-r--r--layouts/_partials/posts/comment.html7
4 files changed, 9 insertions, 1 deletions
diff --git a/config/_default/params.yaml b/config/_default/params.yaml
index 480fb98f..954d45b5 100644
--- a/config/_default/params.yaml
+++ b/config/_default/params.yaml
@@ -1,4 +1,5 @@
author: Eltrac
+email: hi@guhub.cn
mainSections:
- posts
- fictions
diff --git a/i18n/en.yml b/i18n/en.yml
index be920bc7..69174498 100644
--- a/i18n/en.yml
+++ b/i18n/en.yml
@@ -28,3 +28,4 @@ statsTooltip: Insights
library:
viewAllThisYear: All Books This Year
back2top: I'll take you up!
+emailMe: If you prefer one-on-one communication, or just want to say hello, feel free to email me at
diff --git a/i18n/zh.yml b/i18n/zh.yml
index 34e01821..b0147949 100644
--- a/i18n/zh.yml
+++ b/i18n/zh.yml
@@ -29,3 +29,4 @@ statsTooltip: 洞察
library:
viewAllThisYear: 查看今年完整书单
back2top: 我带你上去!
+emailMe: 如果你偏好一对一的沟通,或者只是想打个招呼,欢迎发邮件到
diff --git a/layouts/_partials/posts/comment.html b/layouts/_partials/posts/comment.html
index 49638618..01e04cb4 100644
--- a/layouts/_partials/posts/comment.html
+++ b/layouts/_partials/posts/comment.html
@@ -21,11 +21,16 @@
{{ end }}
</div>
{{ end }}
- <div class="giscus my-4">
+
+ <p class="mt-4 text-size-sm text-secondary">
+ *{{ T "emailMe" }} <a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a>
+ </p>
+ <div class="giscus mb-4">
<p style="text-align:center">
{{ T "postPage.commentNotLoaded" }}
</p>
</div>
+
<!-- giscus script -->
<script id="giscus-script"
src="https://giscus.app/client.js"