Skip to content

Commit

Permalink
Issue-451: Issue caused by series name that contains non-ASCII charac…
Browse files Browse the repository at this point in the history
…ters (#452)
  • Loading branch information
gitaeron authored Dec 4, 2022
1 parent 5d7f51b commit 355d2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/series.terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3>{{ i18n "series" | default "series" }}</h3>
{{ $series_name = $series_page.Title }}
{{ end }}

<li><a href="{{ $series_path }}">{{ $series_name }} ({{ $taxonomy.Count }})</a></li>
<li><a href="{{ $series_path | relLangURL }}">{{ $series_name }} ({{ $taxonomy.Count }})</a></li>
{{ end }}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/series.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $series_name := .Get 0 | urlize }}

{{ range $key, $taxonomy := .Site.Taxonomies.series }}
{{ if eq $key $series_name }}
{{ if eq ($key | urlize) $series_name }}
<ul>
{{ range $taxonomy.Pages.ByDate }}
<li hugo-nav="{{ .RelPermalink }}"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
Expand Down

0 comments on commit 355d2b2

Please sign in to comment.