更新主题,新增评论方式介绍
This commit is contained in:
parent
4e68850975
commit
f41d04d3b5
@ -445,4 +445,12 @@ div.friend-link div.friend-link-bio {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comment-but {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comment-but a {
|
||||||
|
border-bottom: 1px solid var(--secondary);
|
||||||
}
|
}
|
@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
.main .profile {
|
.main .profile {
|
||||||
align-items: center;
|
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;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
i18n/en.yaml
23
i18n/en.yaml
@ -36,4 +36,25 @@
|
|||||||
translation: "Categories"
|
translation: "Categories"
|
||||||
|
|
||||||
- id: Tags
|
- id: Tags
|
||||||
translation: "Tags"
|
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"
|
23
i18n/zh.yaml
23
i18n/zh.yaml
@ -36,4 +36,25 @@
|
|||||||
translation: "分类"
|
translation: "分类"
|
||||||
|
|
||||||
- id: Tags
|
- id: Tags
|
||||||
translation: "标签"
|
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: "最新文章"
|
@ -46,9 +46,17 @@
|
|||||||
{{- $paginator := .Paginate $pages }}
|
{{- $paginator := .Paginate $pages }}
|
||||||
|
|
||||||
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
||||||
{{- partial "home_info.html" . }}
|
{{- partial "index_profile.html" . }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .IsHome }}
|
||||||
|
<header class="page-header">
|
||||||
|
<h1>{{ i18n "latest_articles"}}</h1>
|
||||||
|
</header>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{- $term := .Data.Term }}
|
{{- $term := .Data.Term }}
|
||||||
{{- range $index, $page := $paginator.Pages }}
|
{{- range $index, $page := $paginator.Pages }}
|
||||||
|
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
{{- if and (gt (len $pages) 1) (in $pages . ) }}
|
{{- if and (gt (len $pages) 1) (in $pages . ) }}
|
||||||
|
<!-- 不提供评论但是可以发邮件和telegram -->
|
||||||
|
<div class="no-comment-but">
|
||||||
|
{{ i18n "no_comment_but" }}
|
||||||
|
<a href="mailto:windypathblog@gmail.com?subject={{ i18n " chat_email_title_prefix"}}{{.Title}}&body={{ i18n "chat_email_body_prefix"}}{{.Permalink}}">
|
||||||
|
{{ i18n "send_email" }}
|
||||||
|
</a>
|
||||||
|
{{ i18n "or" }}
|
||||||
|
<a href="https://t.me/windypath" style="border-bottom: 1px solid var(--secondary);"target="_blank">
|
||||||
|
{{ i18n "chat_on_telegram" }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<nav class="paginav">
|
<nav class="paginav">
|
||||||
{{- with $pages.Next . }}
|
{{- with $pages.Next . }}
|
||||||
<a class="prev" href="{{ .Permalink }}">
|
<a class="prev" href="{{ .Permalink }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user