Skip to content

Commit

Permalink
fix: Use .Permalink instead of combining URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Dec 24, 2019
1 parent 4389ddf commit f1d4906
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 @@ -70,7 +70,7 @@
{{ $.Scratch.Add "sectionDir" (printf `/%s` .) }}
{{ with $.Site.GetPage ($.Scratch.Get "sectionDir") }}
{{ if (eq .Kind "section") }}
<category scheme="{{ printf "%s/" ($.Scratch.Get "sectionDir" | urlize | absLangURL) }}" term="{{ $section }}" label="{{ $section }}" />
<category scheme="{{ .Permalink }}" term="{{ $section }}" label="{{ $section }}" />
{{ end }}
{{ 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 @@ -63,7 +63,7 @@
{{ $.Scratch.Add "sectionDir" (printf `/%s` .) }}
{{ with $.Site.GetPage ($.Scratch.Get "sectionDir") }}
{{ if (eq .Kind "section") }}
<category domain="{{ printf "%s/" ($.Scratch.Get "sectionDir" | urlize | absLangURL) }}">{{ $section }}</category>
<category domain="{{ .Permalink }}">{{ $section }}</category>
{{ end }}
{{ end }}
{{ end }}
Expand Down

0 comments on commit f1d4906

Please sign in to comment.