Changes in Referenced Files through `load_data ` do not get picked up correctly by `zola serve`
Author: wert007Created Sep 23, 2026Updated Sep 23, 2026
Labelsenhancement
I have this small component in my templates folder:
{% component drawio(path: string) %} {% set data = load_data(path=path) %}
<div class="drawio-container">{{ data | safe }}</div>
{% endcomponent drawio %}Which allows me to use svg files in my markdown files easily:
// blog.md
{{ <drawio path="diagram.svg" /> }}If I make changes to diagram.svg zola serve picks that up, but misses, that this is used in blog.md, and that one should also be changed accordingly.
I feel like, that would be a nice feature to have. :)
Right now I just restart zola serve and reload the page in the browser manually.
Source: getzola/zola