[solved] Static files (documents, ...) and subdirectory publishing

well, I solve myslef

I have created a shortcode (/shortcodes/static_link.html)

<a href="{{ get_url(path = file) }}" target="_blank">
    {{ label }}
</a>

and then use it

+++
title = "Some page"
+++

click {{ static_link(label="here", file="/files/foo.odt") }} to download

and voilà!

2 Likes