From 0ee469442a377be6522ddbd408a53df2efd2e105 Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 27 Feb 2020 23:00:36 +0900 Subject: [PATCH] better img shortcode -> lazy option default true --- layouts/shortcodes/img.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 78ed7bb..4bcb43b 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,5 +1,5 @@ {{ $base := (findRE "/[a-zA-Z0-9_]+/" .Site.BaseURL | default "/") }} -{{ if not (.Get "lazy") }} +{{ if or (eq (.Get "lazy") false) (eq (.Get "lazy") "false") }}
{{ with .Get "link"}}{{ end }}