Skip to content

Commit

Permalink
anchorize rather than urlize
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Feb 5, 2025
1 parent 7d82385 commit 0f49721
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions layouts/partials/persons/paginator-groupby-statutes.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{{- $atf := cond (partial "func/HasImageHero" .) false true -}}
{{- $isPageStatutes := eq .Type "persons_statutes" -}}
{{ range (.Paginate (.Data.Pages.GroupByParam "persons_statutes")).PageGroups }}
{{- range (.Paginate (.Data.Pages.GroupByParam "persons_statutes")).PageGroups }}
<section>
{{ if not $isPageStatutes }}
{{ with site.GetPage (printf "/persons_statutes/%s" (.Key | urlize)) }}
<header class="heading"{{ partial "func/SetAnim" (dict "element" "heading") }}>
{{- if not $isPageStatutes }}
{{- with site.GetPage (printf "/persons_statutes/%s" (.Key | anchorize)) }}
<header class="heading" {{- partial "func/SetAnim" (dict "element" "heading") }}>
<h2>{{ partial "func/PrepareHTML" .Title | pluralize }}</h2>
</header>
{{ end }}
{{ end }}
{{ end -}}
{{ end -}}
{{ partial "persons/items" (dict "pages" .Pages "abovethefold" $atf) }}
</section>
{{ end }}
{{ end -}}

0 comments on commit 0f49721

Please sign in to comment.