Fix breaking changes due to hugo 0.82

This commit is contained in:
Ceda EI 2021-06-03 12:08:54 +05:30
parent b91a57f28b
commit 0754b07132
1 changed files with 7 additions and 7 deletions

View File

@ -27,17 +27,17 @@
{{ block "styles" . }} {{ end }} <!-- Get "style_opts" variable from "styles" block --> {{ block "styles" . }} {{ end }} <!-- Get "style_opts" variable from "styles" block -->
{{ $base_styles_opts := .Scratch.Get "style_opts" | default (dict "src" "scss/pages/about.scss" "dest" "css/about.css") }} {{ $base_styles_opts := .Scratch.Get "style_opts" | default (dict "src" "scss/pages/about.scss" "dest" "css/about.css") }}
{{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }} {{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }}
{{ $current_page := . }} {{ $current_page := . }}
{{ range (slice $base_styles_opts $custom_styles_opts) }} {{ range (slice $base_styles_opts $custom_styles_opts) }}
{{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }} {{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }}
<link type="text/css" rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}"/> <link type="text/css" rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}"/>
{{ end }} {{ end }}
{{ range .AlternativeOutputFormats }} {{ range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.FirstSuffix.Suffix .Permalink $.Site.Title | safeHTML }}
{{ end }} {{ end }}
{{ block "links" . }} {{ end }} {{ block "links" . }} {{ end }}
{{ partial "seo-schema.html" .}} {{ partial "seo-schema.html" .}}
@ -47,7 +47,7 @@
</head> </head>
<body> <body>
{{ partial "burger.html" .}} {{ partial "burger.html" .}}
{{ partial "nav.html" .}} {{ partial "nav.html" .}}