Fix breaking changes due to hugo 0.82
This commit is contained in:
parent
b91a57f28b
commit
0754b07132
|
@ -27,17 +27,17 @@
|
|||
{{ 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") }}
|
||||
{{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }}
|
||||
|
||||
|
||||
{{ $current_page := . }}
|
||||
|
||||
|
||||
{{ range (slice $base_styles_opts $custom_styles_opts) }}
|
||||
{{ $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 }}"/>
|
||||
{{ end }}
|
||||
|
||||
{{ range .AlternativeOutputFormats }}
|
||||
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
{{ range .AlternativeOutputFormats }}
|
||||
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.FirstSuffix.Suffix .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{ block "links" . }} {{ end }}
|
||||
{{ partial "seo-schema.html" .}}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "burger.html" .}}
|
||||
{{ partial "burger.html" .}}
|
||||
|
||||
{{ partial "nav.html" .}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue