From f41d04d3b58ba6c2363870b75cb46804cc8c9120 Mon Sep 17 00:00:00 2001 From: JohnathanLin <289348588@qq.com> Date: Sun, 31 Dec 2023 18:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=84=E8=AE=BA=E6=96=B9=E5=BC=8F=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/common/post-single.css | 8 ++++++++ assets/css/common/profile-mode.css | 3 ++- i18n/en.yaml | 23 ++++++++++++++++++++++- i18n/zh.yaml | 23 ++++++++++++++++++++++- layouts/_default/list.html | 10 +++++++++- layouts/partials/post_nav_links.html | 12 ++++++++++++ 6 files changed, 75 insertions(+), 4 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 04c4e8b..bcef037 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -445,4 +445,12 @@ div.friend-link div.friend-link-bio { font-size: 16px; line-height: 32px; overflow: hidden; +} + +.no-comment-but { + font-size: 14px; +} + +.no-comment-but a { + border-bottom: 1px solid var(--secondary); } \ No newline at end of file diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index 58f2819..b5c4f25 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -6,7 +6,8 @@ .main .profile { align-items: center; - min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2)); + /* min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2)); 改为全屏*/ + min-height: calc(100vh - var(--header-height) ); text-align: center; } diff --git a/i18n/en.yaml b/i18n/en.yaml index 97f5479..37e82fc 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -36,4 +36,25 @@ translation: "Categories" - id: Tags - translation: "Tags" \ No newline at end of file + translation: "Tags" + +- id: no_comment_but + translation: "No comments here, but I encourage you to engage in discussions with the author!" + +- id: send_email + translation: "Send Email" + +- id: chat_on_telegram + translation: "Chat On Telegram" + +- id: or + translation: "Or" + +- id: chat_email_title_prefix + translation: "I'd like to discuss the content of this article: " + +- id: chat_email_body_prefix + translation: "The original link: " + +- id: latest_articles + translation: "Latest Articles" \ No newline at end of file diff --git a/i18n/zh.yaml b/i18n/zh.yaml index 63ac4f7..68751b5 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -36,4 +36,25 @@ translation: "分类" - id: Tags - translation: "标签" \ No newline at end of file + translation: "标签" + +- id: no_comment_but + translation: "本站不提供评论功能,但是鼓励您与作者交流讨论!" + +- id: send_email + translation: "发送邮件" + +- id: chat_on_telegram + translation: "发送Telegram消息" + +- id: or + translation: "或" + +- id: chat_email_title_prefix + translation: "我想和你讨论这篇文章的内容: " + +- id: chat_email_body_prefix + translation: "原文链接: " + +- id: latest_articles + translation: "最新文章" \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3a6f316..904447a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -46,9 +46,17 @@ {{- $paginator := .Paginate $pages }} {{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} -{{- partial "home_info.html" . }} +{{- partial "index_profile.html" . }} + {{- end }} +{{- if .IsHome }} + +{{- end }} + + {{- $term := .Data.Term }} {{- range $index, $page := $paginator.Pages }} diff --git a/layouts/partials/post_nav_links.html b/layouts/partials/post_nav_links.html index b988641..762ff74 100644 --- a/layouts/partials/post_nav_links.html +++ b/layouts/partials/post_nav_links.html @@ -1,5 +1,17 @@ {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- if and (gt (len $pages) 1) (in $pages . ) }} + +
+ {{ i18n "no_comment_but" }} + + {{ i18n "send_email" }} + + {{ i18n "or" }} + + {{ i18n "chat_on_telegram" }} + +
+