feat: add support for Hugo v0.101.0 breaking changes

Hugo v0.101.0 had breaking changes to relURL and relLangURL

See https://github.com/gohugoio/hugo/issues/9994
See https://discourse.gohugo.io/t/changing-the-title-link/41239/5
This commit is contained in:
George Cushen committed 2022-11-06 15:59:39 +00:00
1 parent ff4b7b1193
commit a29d4ed136
2 files changed
+3 -3

No files matched your search

@@ -16,5 +16,5 @@
"type": "image/png"
}],
"display": "standalone",
"start_url": "{{ "/" | relLangURL }}?utm_source=web_app_manifest"
"start_url": "{{ site.Home.RelPermalink }}?utm_source=web_app_manifest"
}
@@ -19,7 +19,7 @@
{{if $show_logo}}
<div class="d-none d-lg-inline-flex">
<a class="navbar-brand" href="{{ "/" | relLangURL }}">
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}">
{{- if $has_logo -}}
<img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}"
{{with site.Params.header.image.width}}width="{{.}}"{{end}}
@@ -40,7 +40,7 @@
{{if $show_logo}}
<div class="navbar-brand-mobile-wrapper d-inline-flex d-lg-none">
<a class="navbar-brand" href="{{ "/" | relLangURL }}">
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}">
{{- if $has_logo -}}
<img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}"
{{with site.Params.header.image.width}}width="{{.}}"{{end}}