diff options
author | amzrk2 | 2020-04-20 19:08:56 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-20 19:08:56 +0800 |
commit | 71ae6d1e825fdb782328653f121651dc515b29e9 (patch) | |
tree | 6034b286caf5803c29469821b49d99a717d7ac92 /layouts/shortcodes | |
parent | 338f934a2a252b018af2cba56eac956577780147 (diff) | |
download | hugo-theme-fuji-71ae6d1e825fdb782328653f121651dc515b29e9.tar.gz hugo-theme-fuji-71ae6d1e825fdb782328653f121651dc515b29e9.tar.bz2 hugo-theme-fuji-71ae6d1e825fdb782328653f121651dc515b29e9.zip |
Optional lazy image instead of global set
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/lazyimg-col.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/lazyimg-row.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/lazyimg.html | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/layouts/shortcodes/lazyimg-col.html b/layouts/shortcodes/lazyimg-col.html new file mode 100644 index 0000000..0192ba5 --- /dev/null +++ b/layouts/shortcodes/lazyimg-col.html @@ -0,0 +1 @@ +<p><img class="lazy" src="{{ .Site.Params.cdnLazyPlaceholderCol }}" data-src="{{ index .Params 1 }}" alt="{{ index .Params 0 }}" /></p>
\ No newline at end of file diff --git a/layouts/shortcodes/lazyimg-row.html b/layouts/shortcodes/lazyimg-row.html new file mode 100644 index 0000000..dd07f93 --- /dev/null +++ b/layouts/shortcodes/lazyimg-row.html @@ -0,0 +1 @@ +<p><img class="lazy" src="{{ .Site.Params.cdnLazyPlaceholderRow }}" data-src="{{ index .Params 1 }}" alt="{{ index .Params 0 }}" /></p>
\ No newline at end of file diff --git a/layouts/shortcodes/lazyimg.html b/layouts/shortcodes/lazyimg.html new file mode 100644 index 0000000..a23a15e --- /dev/null +++ b/layouts/shortcodes/lazyimg.html @@ -0,0 +1 @@ +<p><img class="lazy" src="{{ .Site.Params.cdnLazyPlaceholder }}" data-src="{{ index .Params 1 }}" alt="{{ index .Params 0 }}" /></p>
\ No newline at end of file |