debug: add visible debug output for photo data

This commit is contained in:
Ricardo
2026-01-28 22:00:22 +01:00
parent 93a1662e5d
commit 0e82a00739

View File

@@ -19,10 +19,9 @@ permalink: /photos/
</div>
{# Render photo(s) from frontmatter #}
{% if post.data.photo %}
<!-- DEBUG: photo type={{ post.data.photo | dump | safe }} -->
<pre style="display:none" class="debug-photo">{{ post.data.photo | dump | safe }}</pre>
<div class="photo-gallery">
{% for img in post.data.photo %}
<!-- DEBUG: img={{ img | dump | safe }} url={{ img.url }} -->
{% set photoUrl = img.url %}
{% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
{% set photoUrl = '/' + photoUrl %}