From e7821f5aa83f30b1b9b51c6c6716c7773d5185c0 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 23 Nov 2019 21:20:55 +0100 Subject: [PATCH 1/3] Show image in header of an article --- alchemy/templates/article.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 43b221d..e15e584 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -42,6 +42,10 @@ {% endif %} + {% if article.image %} + article header image + {% endif %}
{{ article.content }} From afaf4e8bfbb6c2fd70c0369ab1b553b1ab7bef59 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 23 Nov 2019 21:26:22 +0100 Subject: [PATCH 2/3] Show article images in the preview list on index --- alchemy/templates/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index f526922..9fa34fa 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -45,6 +45,10 @@
{{ article.summary|striptags }}
+ {% if article.image %} + article header image + {% endif %}
{% if not loop.last %} From 43b5acb543ea525e61fc438699385c142332aa74 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 28 Feb 2021 14:55:24 +0100 Subject: [PATCH 3/3] Do not render featured image as part of the content, to not duplicate ones really in the content --- alchemy/templates/article.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index e15e584..1e2be8f 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -42,10 +42,12 @@ {% endif %} + {# {% if article.image %} article header image {% endif %} + #}
{{ article.content }}