mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-09 14:59:45 +00:00
fix(uglyurls): uglyurls with tag and categories terms (#129)
Closes #89
This commit is contained in:
parent
4fe268549a
commit
f14d7b5f73
2 changed files with 5 additions and 3 deletions
|
@ -109,6 +109,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配
|
||||||
customCSS = []
|
customCSS = []
|
||||||
customJS = []
|
customJS = []
|
||||||
|
|
||||||
|
uglyURLs = false # please keep same with uglyurls setting
|
||||||
|
|
||||||
[params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义
|
[params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义
|
||||||
enable = true
|
enable = true
|
||||||
jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
|
jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="terms-tags">
|
<div class="terms-tags">
|
||||||
{{ range $key, $value := $terms -}}
|
{{ range $key, $value := $terms -}}
|
||||||
<a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
|
<a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
|
||||||
{{ $value.Term }}
|
{{ $value.Term }}
|
||||||
<span class="terms-count">{{ len $value.Pages }}</span>
|
<span class="terms-count">{{ len $value.Pages }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="terms-tags">
|
<div class="terms-tags">
|
||||||
{{- range $key, $value := $terms }}
|
{{- range $key, $value := $terms }}
|
||||||
<a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
|
<a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
|
||||||
{{ $value.Term }}
|
{{ $value.Term }}
|
||||||
<span class="terms-count">{{ len $value.Pages }}</span>
|
<span class="terms-count">{{ len $value.Pages }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -41,4 +41,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue