Robert Bragg
Robert Bragg
Ah, no, shortcodes can't be used in templates (I'm trying to inline the svg icons as part of a footer that's in a base.html template)
Okey, so I figured I could kind of use macros but it's really not very ergonomic unfortunately. Firstly I can make a file named `svg-icons.xml` that looks something like: ```xml...
thanks for the input + suggestions. from what I can tell at the moment then macros may be the closest thing to what I was looking for but they aren't...
Yeah, if there were maybe an option to load as text instead of as a structured object that could be good for this.
I suppose I'd maybe just add that my first intuition was to try and use `{% include "foo.svg" %}` considering that I had previously used `{%- include "foo.svg" -%}` with...
(note that I was doing this from within a template - I thought I saw that `include` currently isn't supported in templates?)
oh, no, wait, I'm getting confused with shortcodes there, ignore that
I recall also trying to rename the files to be html/xml to see if there was an issue with the extension and couldn't get that to work, but maybe need...
I don't currently see where I can set a glob pattern to affect Tera `include`s. Looking at the example config here https://www.getzola.org/documentation/getting-started/configuration/ I just see the pattern for `ignored_content` which...
I can at least confirm that renaming the svg files to be `.xml` files does work as suggested - so when I originally tried this I guess I had the...