mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-31 16:25:57 +00:00
Fix Hugo v0.156.0 template deprecations
This commit is contained in:
1 parent
9bcb7d37d3
commit
ee2fc91522
10 files changed
+14
-10
No files matched your search
@@ -3,7 +3,11 @@
|
||||
{{ $compactSummary := .Get "compactSummary" | default false }}
|
||||
{{ $target := .Page }}
|
||||
{{ if ne $link .Page.RelPermalink }}
|
||||
{{ $target = index (first 1 (where .Site.AllPages "RelPermalink" $link)) 0 }}
|
||||
{{ $pages := slice }}
|
||||
{{ range hugo.Sites }}
|
||||
{{ $pages = $pages | append .Pages }}
|
||||
{{ end }}
|
||||
{{ $target = index (first 1 (where $pages "RelPermalink" $link)) 0 }}
|
||||
{{ end }}
|
||||
{{ if $target }}
|
||||
<section class="space-y-10 w-full">
|
||||
|
||||
Reference in new issue
Block a user