From 71ae6d1e825fdb782328653f121651dc515b29e9 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 20 Apr 2020 19:08:56 +0800 Subject: Optional lazy image instead of global set --- layouts/_default/_markup/render-image.html | 1 - layouts/partials/sidebar.html | 2 +- layouts/shortcodes/lazyimg-col.html | 1 + layouts/shortcodes/lazyimg-row.html | 1 + layouts/shortcodes/lazyimg.html | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 layouts/_default/_markup/render-image.html create mode 100644 layouts/shortcodes/lazyimg-col.html create mode 100644 layouts/shortcodes/lazyimg-row.html create mode 100644 layouts/shortcodes/lazyimg.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html deleted file mode 100644 index 5242d97..0000000 --- a/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1 +0,0 @@ -

{{ .Text }}

\ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 61f2868..8b84596 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -32,6 +32,6 @@ {{ with .Site.Params.bgmImageChart }}
{{ i18n "sidebarBangumiChart" }}
- +
{{ end }} \ No newline at end of file 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 @@ +

{{ index .Params 0 }}

\ 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 @@ +

{{ index .Params 0 }}

\ 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 @@ +

{{ index .Params 0 }}

\ No newline at end of file -- cgit v1.2.3