Merge branch 'hotfix_v4.5.1' into develop

This commit is contained in:
elkan1788 2023-06-28 10:17:49 +08:00
commit dfcdaf9245
5 changed files with 5 additions and 6 deletions

View File

@ -1 +1 @@
4.5.0
4.5.1

View File

@ -1,5 +1,5 @@
# Hugo NexT theme's custom config
version: 4.5.0
version: 4.5.1
domain: hugo-next.eu.org

View File

@ -11,7 +11,7 @@ originLink: https://mainroad-demo.netlify.app/post/basic-elements/
categories:
- 示例文章
- 语法
- Markdown语法
tags:
- Markdown

View File

@ -67,7 +67,7 @@ print "Hello, world!"
### Git 对比
``` diff {hl_lines=[4,"6-7"] linenos=true}
```diff {hl_lines=[4,"6-7"], linenos=true}
*** /path/to/original ''timestamp''
--- /path/to/new ''timestamp''
***************

View File

@ -15,7 +15,6 @@
</div>
<div class="post-body">
{{ if eq .Data.Plural "categories" }}
{{ $categories := .Site.Taxonomies.categories }}
<div class="category-all-page">
<div class="category-all-title">
{{ T "Terms.categories" (.Scratch.Get "catsCount") | safeHTML }}
@ -24,7 +23,7 @@
<ul class="category-list">
{{ $allSecondaryCats := slice }}
{{ range .Site.Taxonomies.categories.ByCount }}
{{ $primaryCategory := .Name }}
{{ $primaryCategory := .Page.Title }}
{{ $primaryCount := 0 }}
{{ $secondaryCategories := slice}}
{{ $pages := $.Scratch.Get "pages" }}