Hello everyone!
I’m trying to rewrite my multiple photo sites in one single website with zola (and add a blog section, but that’s irrelevant).
In order to do so, i’ve created $ZOLA_ROOT/templates/shortcodes/gal_img.md
with the following content:
[ }})]({{ path }})
A simple goal: make the given image a smaller display size to save on bandwidth, but include a link to the full-sized image on it.
It is valid markdown, as shown with this snippet: [](https://i.imgur.com/cAS19H2.jpeg)
rendering as this:
However, when trying to render the following markdown with zola serve
, i’m given a quite obscure «failed to render content»:
+++
title = "My title"
description = "My description"
date = "2021-06-18"
+++
{{ gal_img(path="image_path_just_next_to_index_md.jpg") }}
Change detected @ 2021-06-18 11:34:06
-> Content changed $ZOLA_ROOT/content/photos/my_gallery/index.md
Failed to render content of $ZOLA_ROOT/content/photos/my_gallery/index.md
Done in 35ms.
Does this community see a mistake on my part? Is there a way for me to have more details as to what went wrong during rendering?
Thank you for reading, and thank you for this otherwise neat piece of software.
– Ololduck