🐛 Fixed category for i18n & English articles.

This commit is contained in:
elkan1788 2025-01-30 09:20:03 +08:00
parent 5190eb1920
commit f7983d906a
7 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@ date: 2025-01-25T19:12:32+08:00
lastmod: 2025-01-25T19:12:32+08:00 lastmod: 2025-01-25T19:12:32+08:00
categories: categories:
- Start building website - StartBuilSite
tags: tags:
- Hugo - Hugo

View File

@ -1,5 +1,5 @@
--- ---
title: "Image browsing Tool" title: "Image Browsing Tool"
description: "By default, images within the article will be browsed. Clicking on an image will display a larger image, while clicking on a blank space will close it." description: "By default, images within the article will be browsed. Clicking on an image will display a larger image, while clicking on a blank space will close it."
Keywords: "image, image, browser, photo album" Keywords: "image, image, browser, photo album"

View File

@ -8,9 +8,9 @@ lastmod: 2025-01-29T20:50:02+08:00
categories: categories:
- ThirdParty - ThirdParty
- Mathematical formulas - Mathematical
tags: tags:
- Mathematical formulas - Mathematical
- mathjax - mathjax
- katex - katex

View File

@ -7,10 +7,10 @@ lastmod: 2025-01-29T21:01:13+08:00
categories: categories:
- ThirdParty - ThirdParty
- Diagram sequence - DiagramSequence
tags: tags:
- Process diagram - ProcessDiagram
- Timing diagram - TimingDiagram
url: "demo/mermaid-charts.html" url: "demo/mermaid-charts.html"
toc: true toc: true

View File

@ -571,7 +571,7 @@ params:
expired: false expired: false
# 是否开启摘要显示 # 是否开启摘要显示
# Enable summary # Enable summary
summary: false summary: true
# 文章内容中的提示信息设置 # 文章内容中的提示信息设置
# Alert settings in post content # Alert settings in post content

View File

@ -47,7 +47,7 @@
{{ if not (in $allSecondaryCats $primaryCategory) }} {{ if not (in $allSecondaryCats $primaryCategory) }}
<li class="category-list-item"> <li class="category-list-item">
<a class="category-list-link" href="{{ "categories/" | relURL }}{{ $primaryCategory | urlize }}/"> <a class="category-list-link" href="{{ "categories/" | relLangURL }}{{ $primaryCategory | urlize }}/">
{{ $primaryCategory }} {{ $primaryCategory }}
<span class="category-list-count">{{ $primaryCount }}</span> <span class="category-list-count">{{ $primaryCount }}</span>
</a> </a>
@ -62,7 +62,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<li class="category-children-list-item"> <li class="category-children-list-item">
<a class="category-list-link" href="{{ "categories/" | relURL }}{{ . | urlize }}/"> <a class="category-list-link" href="{{ "categories/" | relLangURL }}{{ . | urlize }}/">
{{ . }} {{ . }}
<span class="category-list-count">{{ $secondaryCount }}</span> <span class="category-list-count">{{ $secondaryCount }}</span>
</a> </a>