Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加国际版后的问题 #162

Open
xushuhui opened this issue Mar 7, 2023 · 2 comments
Open

增加国际版后的问题 #162

xushuhui opened this issue Mar 7, 2023 · 2 comments

Comments

@xushuhui
Copy link

xushuhui commented Mar 7, 2023

image

分类页面和标签页面都有该问题

@BeanHsiang
Copy link

BeanHsiang commented Apr 11, 2023

遇到同样的问题,只知道具体是下面的 range 语句不能这么用。

{{ if eq .Data.Singular "category" }}
    <h3 class="archive-title">
        {{ range .Site.Taxonomies.categories.ByCount }}
            <span>{{ .Count }}</span>
        {{ end }}
        <span class="keyword">{{ .Data.Term }}</span>
        {{ i18n "Articles" }}
    </h3>
    {{ else if eq .Data.Singular "tag" }}
    <h3 class="archive-title">
        {{ range .Site.Taxonomies.tags.ByCount }}
        <span>{{ .Count }}</span>
        {{ end }}
        <span class="keyword">{{ .Data.Term }}</span>
        {{ i18n "Articles" }}
    </h3>
    {{ end }}

@361way
Copy link

361way commented Nov 1, 2023

image
测试发现有同样的问题

flysnoworg pushed a commit that referenced this issue Nov 2, 2023
* feat: hugo v0.115.3 generate fail

* feat: 删除分类中的长串数字

close #167 #162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants