From 3e60a10f7d8092f56039161aafe83d87426e7e8c Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 3 Mar 2018 20:04:20 -0500 Subject: [PATCH] Added ability to load javascript libraries for articles only when they're needed. --- site/themes/citra-bs-theme/layouts/_default/baseof.html | 5 +++++ src/scss/citra-theme.scss | 2 +- 2 files changed, 6 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 41ea14b..bcc3b98 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -115,6 +115,11 @@ {{ block "scripts" . }}{{ end }} + + {{ if in .Params.js "juxtapose" }} + + + {{ end }} diff --git a/src/scss/citra-theme.scss b/src/scss/citra-theme.scss index da12930..fef4e44 100644 --- a/src/scss/citra-theme.scss +++ b/src/scss/citra-theme.scss @@ -17,7 +17,7 @@ background-color: white; box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1); } -#content img { +#content figure img { max-width: 100%; height: auto; }