summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-08-02 15:24:34 +0800
committerroninro <liumy.f@foxmail.com>2022-08-02 15:24:34 +0800
commitdfb6b815514a14c311ee5a1027c8d2669f2430f8 (patch)
treed8b4584f9e17096ffffe61f4f126afeb0afdf40a /layouts/_default/baseof.html
parent0072f3dac08dab7640cf5a3ae98c21e4ed3ca988 (diff)
lazysizes
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index f88f2d9..7b60826 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -14,7 +14,8 @@
<title>{{ $title }}</title>
{{ with .Site.Params.author }}
- <meta name="author" content="{{ . }}">{{ end }}
+ <meta name="author" content="{{ . }}">
+ {{ end }}
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
<meta name="keywords" content="{{ (delimit .Keywords " ,") | default .Site.Params.keywords }}">
@@ -34,7 +35,6 @@
{{ $zoom_css := resources.Get "zoomjs/zoom.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $zoom_css.RelPermalink }}">
-
{{ range .Site.Params.custom_css -}}
{{ $custom_template := resources.Get . }}
{{ if $custom_template }}
@@ -42,6 +42,9 @@
<link rel="stylesheet" href="{{ $custom_style.RelPermalink }}">
{{ end }}
{{ end }}
+
+ <script src="/js/lazysizes.min.js"></script>
+
<!-- custom js -->
{{ range .Site.Params.custom_js -}}
{{ $custom_template := resources.Get . }}