Skip to content

Commit

Permalink
fix: add anchorize
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Aug 29, 2019
1 parent f25707d commit 863a920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/index.sectionsatom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
{{ range $taxonomy, $terms := . }}
{{ with $page.Param $taxonomy }}
{{ range $index, $term := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $term) }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy ($term | anchorize)) }}
<category scheme="{{ .Permalink }}" term="{{ $term }}" label="{{ $term }}" />
{{ end }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.sectionsrss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
{{ range $taxonomy, $terms := . }}
{{ with $page.Param $taxonomy }}
{{ range $index, $term := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $term) }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy ($term | anchorize)) }}
<category domain="{{ .Permalink }}">{{ $term }}</category>
{{ end }}
{{ end }}
Expand Down

0 comments on commit 863a920

Please sign in to comment.