debug: add visible debug output for photo data
This commit is contained in:
+1
-2
@@ -19,10 +19,9 @@ permalink: /photos/
|
|||||||
</div>
|
</div>
|
||||||
{# Render photo(s) from frontmatter #}
|
{# Render photo(s) from frontmatter #}
|
||||||
{% if post.data.photo %}
|
{% 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">
|
<div class="photo-gallery">
|
||||||
{% for img in post.data.photo %}
|
{% for img in post.data.photo %}
|
||||||
<!-- DEBUG: img={{ img | dump | safe }} url={{ img.url }} -->
|
|
||||||
{% set photoUrl = img.url %}
|
{% set photoUrl = img.url %}
|
||||||
{% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
|
{% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
|
||||||
{% set photoUrl = '/' + photoUrl %}
|
{% set photoUrl = '/' + photoUrl %}
|
||||||
|
|||||||
Reference in New Issue
Block a user