Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Added 'hide_mediasummary' header and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlkonig committed Jul 30, 2020
1 parent e98fb8f commit aceb2e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions templates/item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@
</section>
<section class="content">
{{ page.content }}
{% if not page.header.hide_mediasummary %}
<p></p>
{% for image in page.media.images %}
{{ image.cropResize(700, 400).html("title", "alt", "itemscreenshot") }}
{% endfor %}
{% endif %}

</section>
<section class="foot">
Expand Down

0 comments on commit aceb2e5

Please sign in to comment.