From bfdc1a9115b82e285a6dfb713459edc5b0216573 Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 14 Mar 2025 20:56:13 +0100 Subject: [PATCH] featured_pics now link to their original image file --- theme/templates/includes/macros.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/theme/templates/includes/macros.html b/theme/templates/includes/macros.html index 459087c..9d906ee 100644 --- a/theme/templates/includes/macros.html +++ b/theme/templates/includes/macros.html @@ -1,5 +1,6 @@ {# output a featured image for an article #} {% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %} +{% if not link %}{% set link = pic %}{% endif %}