diff --git a/templates/shortcodes/further.html b/templates/shortcodes/further.html index 205c134c8f80edb9d8e41332398bda4b6b638909..b823e51c44845faa70c8a6ab4098103101b1beb3 100644 --- a/templates/shortcodes/further.html +++ b/templates/shortcodes/further.html @@ -14,8 +14,8 @@ <figure class="image is-4by3"> {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%} <img src="{{image.url}}" alt="{{further.alt}}" /> - {% if further.image.credits %} - <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.image.credits }}</figcaption> + {% if further.credits %} + <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.credits }}</figcaption> {% endif %} </figure> </a>