From 835e98d85dc1058e279b8a0a883294bba8af8595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Mon, 2 Jan 2023 18:00:44 +0800 Subject: [PATCH] :lipstick::wrench: Update the sidebar info. --- i18n/en.yaml | 20 +++-- i18n/zh-cn.yaml | 27 +++--- layouts/partials/header/menus.html | 2 +- layouts/partials/header/sidebar.html | 82 ------------------- .../partials/post/footer_meta/copyright.html | 2 +- layouts/partials/sidebar.html | 7 +- layouts/partials/sidebar/overview.html | 10 +-- 7 files changed, 36 insertions(+), 114 deletions(-) delete mode 100644 layouts/partials/header/sidebar.html diff --git a/i18n/en.yaml b/i18n/en.yaml index 8b45694..f1a0112 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -18,9 +18,6 @@ CateTitle: AllSome: other: "All {{ .Some }}" -NavToggleLabel: - other: Toggle navigation bar - MSearchLabel: other: Search @@ -31,12 +28,23 @@ SymbolComma: SymbolPeriod: other: "." +Sidebar: + label: + posts: Posts + categories: Categories + tags: Tags + rss: RSS + ccommons: "Creative Commons" + navToggle: "Toggle Navigation Bar" + toc: TOC + overview: Overview + SbPostsLable: - other: "Posts" + other: "" SbCatesTitle: - other: "Categories" + other: "" SbTagsTitle: - other: "Tags" + other: "" TableOfContents: other: "TOC" SiteOverview: diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 5e19b72..cd47579 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -31,21 +31,18 @@ SymbolComma: other: "," SymbolPeriod: other: "。" - -SbPostsLable: - other: 日志 -SbCatesTitle: - other: 分类 -SbTagsTitle: - other: 标签 -TableOfContents: - other: 文章目录 -SiteOverview: - other: 站点概览 -RSSLable: - other: RSS 订阅 -CCLinkTitle: - other: 共享知识 + +Sidebar: + label: + posts: 日志 + categories: 分类 + tags: 标签 + rss: RSS 订阅 + ccommons: 共享知识 + toc: 文章目录 + overview: 站点概览 + navToggle: 切换导航栏 + search: 搜索 TagsCounterTitle: zero: 暂无标签 diff --git a/layouts/partials/header/menus.html b/layouts/partials/header/menus.html index 7e81609..5e12b28 100644 --- a/layouts/partials/header/menus.html +++ b/layouts/partials/header/menus.html @@ -17,7 +17,7 @@ {{ if or .Site.Params.algoliaSearch.enable .Site.Params.localSearch.enable }} {{ end }} diff --git a/layouts/partials/header/sidebar.html b/layouts/partials/header/sidebar.html deleted file mode 100644 index 168c881..0000000 --- a/layouts/partials/header/sidebar.html +++ /dev/null @@ -1,82 +0,0 @@ -{{ $SP := .Site.Params }} - \ No newline at end of file diff --git a/layouts/partials/post/footer_meta/copyright.html b/layouts/partials/post/footer_meta/copyright.html index ea12756..bd949d5 100644 --- a/layouts/partials/post/footer_meta/copyright.html +++ b/layouts/partials/post/footer_meta/copyright.html @@ -1,6 +1,6 @@ {{ if .Site.Params.creativeCommons.post }}
- {{ T + {{ T
+{{ $tocEnable := and .IsPage .Params.toc | default .Site.Params.toc.enable }}