mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 02:21:52 +02:00
Support for UTF-8 encoded series names
This commit is contained in:
parent
2039409722
commit
1211608786
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,9 @@
|
||||||
class="py-1 text-lg font-semibold cursor-pointer bg-primary-200 text-neutral-800 ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 dark:bg-primary-800 dark:text-neutral-100">
|
class="py-1 text-lg font-semibold cursor-pointer bg-primary-200 text-neutral-800 ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 dark:bg-primary-800 dark:text-neutral-100">
|
||||||
{{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }}
|
{{ index .Params.series 0 }} - {{ i18n "article.part_of_series" }}
|
||||||
</summary>
|
</summary>
|
||||||
{{ range $post := sort (index .Site.Taxonomies.series (index .Params.series 0 | urlize)) "Params.series_order" }}
|
{{ $seriesName := strings.ToLower (index .Params.series 0) }}
|
||||||
|
{{ $seriesNameURL := strings.Replace $seriesName " " "-" }}
|
||||||
|
{{ range $post := sort (index .Site.Taxonomies.series $seriesNameURL) "Params.series_order" }}
|
||||||
{{ if eq $post.Permalink $.Page.Permalink }}
|
{{ if eq $post.Permalink $.Page.Permalink }}
|
||||||
<div
|
<div
|
||||||
class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
|
class="py-1 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
|
||||||
|
@ -21,4 +23,4 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue