From bbf9ff6b331aa790cd92e34d9170d44c9948c629 Mon Sep 17 00:00:00 2001 From: zzossig Date: Wed, 25 Dec 2019 13:28:08 +0900 Subject: [PATCH] summary only render general pages, chinese social icon added, --- README.ko.md | 3 +++ README.md | 3 +++ i18n/zh.toml | 2 +- layouts/_default/list.html | 2 +- layouts/_default/taxonomy.html | 1 + layouts/index.html | 6 +++--- layouts/partials/svgs/social/csdn.svg | 1 + layouts/partials/svgs/social/douban.svg | 1 + layouts/partials/svgs/social/zhihu.svg | 1 + theme.toml | 2 +- 10 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 layouts/partials/svgs/social/csdn.svg create mode 100644 layouts/partials/svgs/social/douban.svg create mode 100644 layouts/partials/svgs/social/zhihu.svg diff --git a/README.ko.md b/README.ko.md index bd5eaa9..9397d8a 100644 --- a/README.ko.md +++ b/README.ko.md @@ -327,6 +327,9 @@ commento = false telegram = "" steam = "" weibo = "" + douban = "" + csdn = "" + zhihu = "" [donationOptions] enable = false # if set, the donation button will show up on the single page. diff --git a/README.md b/README.md index f80b4d7..1ae46de 100644 --- a/README.md +++ b/README.md @@ -322,6 +322,9 @@ commento = false telegram = "" steam = "" weibo = "" + douban = "" + csdn = "" + zhihu = "" [donationOptions] enable = false # if set, the donation button will show up on the single page. diff --git a/i18n/zh.toml b/i18n/zh.toml index 72e0af5..5142813 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -38,7 +38,7 @@ other = "总浏览" other = "总访客" [counter-page-pv] -other = "views" +other = "阅读" [donate-message] other = "您的鼓励是我最大的动力" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d27009d..ab2f2c4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@ {{ partial "body/breadcrumb" . }}
-

{{.Title}}

+
{{.Title}}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 43d699a..f9ccddf 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -9,6 +9,7 @@
{{.Title}}
+
{{.Content}}
diff --git a/layouts/index.html b/layouts/index.html index 0cbe17e..2a06fa8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,11 +13,11 @@
- {{ range (.Paginator).Pages }} + {{ $paginator := .Paginate (where (where (where .Site.RegularPages "Type" "!=" "contact") "Type" "!=" "archive") "Type" "!=" "about") }} + {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} -
- {{ partial "pagination/pagination" . }} + {{ partial "pagination/pagination" . }} {{ if $.Param "enableSidebar" }} diff --git a/layouts/partials/svgs/social/csdn.svg b/layouts/partials/svgs/social/csdn.svg new file mode 100644 index 0000000..3fac21f --- /dev/null +++ b/layouts/partials/svgs/social/csdn.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svgs/social/douban.svg b/layouts/partials/svgs/social/douban.svg new file mode 100644 index 0000000..beea3ba --- /dev/null +++ b/layouts/partials/svgs/social/douban.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svgs/social/zhihu.svg b/layouts/partials/svgs/social/zhihu.svg new file mode 100644 index 0000000..f8d6995 --- /dev/null +++ b/layouts/partials/svgs/social/zhihu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme.toml b/theme.toml index a4d3f0d..1871de3 100644 --- a/theme.toml +++ b/theme.toml @@ -9,4 +9,4 @@ min_version = "0.60.0" [author] name = "zzossig" - homepage = "https://zzossig.io/ko" \ No newline at end of file + homepage = "https://zzossig.io" \ No newline at end of file