aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/shortcodes/img.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 974affa..d6ad48b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,10 +7,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
{{ $css := resources.Match "stylesheets/*.css" | resources.Concat "style.css" | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $css.Permalink }}">
+ <link type="text/css" rel="stylesheet" href="{{ $css.Permalink }}">
{{ with $.Resources.GetMatch "**.css*" }}
{{ $style := . | minify | fingerprint }}
- <link type=text/css rel="stylesheet" href="{{ $style.Permalink }}">
+ <link type="text/css" rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}
{{- block "head" . }}{{- end }}
</head>
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index a57e1ed..caf9d75 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -1,6 +1,6 @@
<!-- https://gohugo.io/content-management/image-processing/ -->
<!-- Get image -->
-{{- $image := resources.GetMatch (.Get "src") -}}
+{{- $image := .Page.Resources.Get (.Get "src") -}}
<!-- Get parameters -->
{{- $alt := .Get "alt" | default "" -}}