feat: add support for Hugo v0.134+ breaking changes

Tested with Hugo v0.135.0

Addresses `.Summary` breaking changes in Hugo v0.134: https://github.com/gohugoio/hugo/releases/tag/v0.134.0
This commit is contained in:
George Cushen 2024-10-16 22:43:18 +01:00
commit 2eaf5f6849
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@
{{ else }} {{ else }}
{{ $desc = $superuser_role }} {{ $desc = $superuser_role }}
{{ end }} {{ end }}
<meta name="description" content="{{ $desc }}" /> <meta name="description" content="{{ $desc | plainify }}" />
{{/* Get all URL variations for the page. */}} {{/* Get all URL variations for the page. */}}
{{ range .Translations }} {{ range .Translations }}

View file

@ -38,7 +38,7 @@
{{ else }} {{ else }}
{{ $desc = $superuser_role }} {{ $desc = $superuser_role }}
{{ end }} {{ end }}
<meta name="description" content="{{ $desc }}" /> <meta name="description" content="{{ $desc | plainify }}" />
{{ range .Translations }} {{ range .Translations }}
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" /> <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />