From aceb2e5132ed1a1587bede5a0f86890669d5e354 Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Thu, 30 Jul 2020 08:38:28 -0600 Subject: [PATCH] Added 'hide_mediasummary' header and bumped version --- CHANGELOG.md | 6 ++++++ blueprints.yaml | 2 +- templates/item.html.twig | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fad2035..b5786af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v2.1.1 +## 07/30/2020 + +1. [](#new) + * If you reference media in the page content directly, then you may not want that media resummarized at the end of the post. You can now set a page header named `hide_mediasummary` to suppress the summary for that page. + # v2.1.0 ## 03/16/2019 diff --git a/blueprints.yaml b/blueprints.yaml index 3ac5c0b..d66f1d7 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Knowledge Base -version: 2.1.0 +version: 2.1.1 description: A theme for a knowledge base or FAQ icon: database author: diff --git a/templates/item.html.twig b/templates/item.html.twig index 900075b..61491b2 100644 --- a/templates/item.html.twig +++ b/templates/item.html.twig @@ -45,10 +45,12 @@
{{ page.content }} + {% if not page.header.hide_mediasummary %}

{% for image in page.media.images %} {{ image.cropResize(700, 400).html("title", "alt", "itemscreenshot") }} {% endfor %} + {% endif %}