From a5b9214a47bee7dd72066d4aed5879ff4bfa54ba Mon Sep 17 00:00:00 2001 From: CaptV0rt3x Date: Fri, 22 May 2020 19:53:47 +0530 Subject: [PATCH] Add baguettebox view --- site/themes/citra-bs-theme/layouts/_default/baseof.html | 9 +++++++++ .../citra-bs-theme/layouts/shortcodes/sidebyside.html | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/site/themes/citra-bs-theme/layouts/_default/baseof.html b/site/themes/citra-bs-theme/layouts/_default/baseof.html index 97466b5..ba141c1 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -116,6 +116,15 @@ + + + + + {{ block "scripts" . }}{{ end }} {{ if in .Params.js "juxtapose" }} diff --git a/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html b/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html index 8bb3119..2046042 100644 --- a/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html +++ b/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html @@ -6,6 +6,7 @@
{{ $.Scratch.Set "size" (div 12 (len $figures)) }} +
{{ range $figure := $figures }} {{ $.Scratch.Set "src" (index (split $figure "=") 0) }} {{ $.Scratch.Set "title" (index (split $figure "=") 1) }} @@ -20,7 +21,9 @@
{{ else if eq $type "image" }} - {{ $.Scratch.Get + + {{ $.Scratch.Get + {{ else if eq $type "imagelink" }} {{ $.Scratch.Get @@ -34,4 +37,5 @@
{{ end }} +