Skip to content
Snippets Groups Projects
Commit c9d2b40f authored by codecraft's avatar codecraft :crocodile:
Browse files

Fix image credit visibilty

parent 8fad1922
No related branches found
No related tags found
1 merge request!40Fix image gallery
......@@ -6,8 +6,8 @@
<figure class="image is-4by3">
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ picture.image, width=800, height=600) -%}
<img src="{{image.url}}" alt="{{picture.alt}}" />
{% if picture.image.credits %}
<figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ picture.image.credits }}</figcaption>
{% if picture.credits %}
<figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ picture.credits }}</figcaption>
{% endif %}
</figure>
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment