From 7be11c4b7f4271317165e38539d0b6d06164c582 Mon Sep 17 00:00:00 2001 From: elkan1788 Date: Tue, 27 Jun 2023 23:06:38 +0800 Subject: [PATCH] :bug: Fixed the issue of converting English letters to lowercase in category names. --- VERSION | 2 +- data/config.yaml | 2 +- exampleSite/content/post/markdown-syntax.md | 2 +- layouts/_default/terms.html | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index ae15394..99523d4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.5.0 \ No newline at end of file +4.5.1 \ No newline at end of file diff --git a/data/config.yaml b/data/config.yaml index f8452e7..3a98fbe 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -1,5 +1,5 @@ # Hugo NexT theme's custom config -version: 4.5.0 +version: 4.5.1 domain: hugo-next.eu.org \ No newline at end of file diff --git a/exampleSite/content/post/markdown-syntax.md b/exampleSite/content/post/markdown-syntax.md index 32a4da0..5f813c4 100644 --- a/exampleSite/content/post/markdown-syntax.md +++ b/exampleSite/content/post/markdown-syntax.md @@ -11,7 +11,7 @@ originLink: https://mainroad-demo.netlify.app/post/basic-elements/ categories: - 示例文章 - - 语法 + - Markdown语法 tags: - Markdown diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 5d76400..85ff661 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -15,7 +15,6 @@
{{ if eq .Data.Plural "categories" }} - {{ $categories := .Site.Taxonomies.categories }}
{{ T "Terms.categories" (.Scratch.Get "catsCount") | safeHTML }} @@ -24,7 +23,7 @@
    {{ $allSecondaryCats := slice }} {{ range .Site.Taxonomies.categories.ByCount }} - {{ $primaryCategory := .Name }} + {{ $primaryCategory := .Page.Title }} {{ $primaryCount := 0 }} {{ $secondaryCategories := slice}} {{ $pages := $.Scratch.Get "pages" }}