diff options
author | wlh233 <wlh233@live.com> | 2021-08-25 10:59:26 +0300 |
---|---|---|
committer | wlh233 <wlh233@live.com> | 2021-08-25 11:00:14 +0300 |
commit | 39192947cc5f06e030c7e9c0f19d9531b509bd5f (patch) | |
tree | c2b3e086963ee118173f07368bdb7612c384a0b9 /layouts | |
parent | 43cd8c06d462566bf460e2701b34f9a9396517b6 (diff) |
fix issue #2 on taxonomy page and update _gen file
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/taxonomy.html | 4 | ||||
-rw-r--r-- | layouts/_default/term.html | 22 |
2 files changed, 13 insertions, 13 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index be9aa69..e95a91c 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -17,7 +17,7 @@ {{- $ctx := . -}} {{ range .Site.Taxonomies.categories.ByCount }} <div class="container" style="margin-bottom: 0.5rem"> - <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ .Name | urlize }}">{{ .Name }}</a> + <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ .Name | urlize }}/">{{ .Name }}</a> <span class="tag is-medium is-pulled-right"> {{ .Count }} </span> @@ -58,4 +58,4 @@ </div> </div> </section> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index e081039..9874224 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -25,15 +25,6 @@ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ range $paginator.Pages }} <div class="box post-box"> - {{ with .Params.Tags }} - <div class="post-box-tags"> - {{ range .}} - <span class="post-tag post-box-tag"> - <a href="{{ $ctx.Site.BaseURL }}{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a> - </span> - {{ end }} - </div> - {{ end }} <div class="post-box-title"> <a href="{{.Permalink }}" class="title is-size-5">{{ .Title }}</a> </div> @@ -42,11 +33,20 @@ {{ with .Params.Categories }} ・ {{ range .}} <span class="post-tag post-box-category"> - <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> + <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ . | urlize }}/">{{ . }}</a> </span> {{ end }} {{ end }} </div> + {{ with .Params.Tags }} + <div class="post-box-tags"> + {{ range .}} + <span class="post-tag post-box-tag"> + <a href="{{ $ctx.Site.BaseURL }}{{ "/tags/" | relLangURL }}{{ . | urlize }}/">#{{ . }}</a> + </span> + {{ end }} + </div> + {{ end }} </div> {{ end }} {{ partial "paginator.html" . }} @@ -56,4 +56,4 @@ </div> </div> </section> -{{ end }}
\ No newline at end of file +{{ end }} |