diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-24 07:44:42 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-24 07:44:42 +0100 |
commit | bd2d080258103093d5317e4a0dfd9ac274922193 (patch) | |
tree | e425a0a3f4de2f14472a5f2a268bcd1a69d2aaa8 /themes | |
parent | f571e400dbb66a9acd24e566a62620bdaed4159e (diff) | |
download | www-andreasbaumann-cc-bd2d080258103093d5317e4a0dfd9ac274922193.tar.gz www-andreasbaumann-cc-bd2d080258103093d5317e4a0dfd9ac274922193.tar.bz2 |
fixed some deperecation warnings in Hugo around .URL and .Hugo
Diffstat (limited to 'themes')
3 files changed, 4 insertions, 4 deletions
diff --git a/themes/new_theme/layouts/partials/footer_links.html b/themes/new_theme/layouts/partials/footer_links.html index b86860d..04523e8 100644 --- a/themes/new_theme/layouts/partials/footer_links.html +++ b/themes/new_theme/layouts/partials/footer_links.html @@ -2,7 +2,7 @@ <div class="footer__links"> {{ range $key, $value := . }} {{- if ne $key 0 }} | {{ end -}} - <a class="footer__link" href="{{ $value.URL }}">{{ $value.Name }}</a> + <a class="footer__link" href="{{ $value.Permalink }}">{{ $value.Name }}</a> {{- end }} </div> -{{- end }}
\ No newline at end of file +{{- end }} diff --git a/themes/new_theme/layouts/partials/header_slide.html b/themes/new_theme/layouts/partials/header_slide.html index 237da66..68e3b60 100644 --- a/themes/new_theme/layouts/partials/header_slide.html +++ b/themes/new_theme/layouts/partials/header_slide.html @@ -33,7 +33,7 @@ <script src="/slide/lib/js/html5shiv.js"></script> {{ "<![endif]-->" | safeHTML }} - {{ .Hugo.Generator }} + {{ hugo.Generator }} </head> <body> diff --git a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html index 2085966..5da7a2a 100644 --- a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html +++ b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html @@ -7,7 +7,7 @@ <input class="widget-search__submit" type="submit" value="Search"> </form> </div> -{{- if ( eq .URL "/search/" ) }} +{{- if ( eq .Permalink "/search/" ) }} <script language="Javascript"> $( window ).load( function( ) { var paramsString = window.location.search; |