How do we have global assets?


#1

If pages are rendered to subfolders, when i build the site, it can’t access the assets in the main folder.

Colour my ignorance, but this works fine when using live reload, i just don’t know how to build it in a form i can upload to my server with correct asset links.

Assistance would be wonderful.
~Murry


#2

Use the get_url function in the template to get the right path automatially like in the docs: https://github.com/getzola/zola/blob/master/docs/templates/index.html#L11 where favicon.ico is a file at the root of the static directory: https://github.com/getzola/zola/tree/master/docs/static


#3

Thanks! That works perfectly. I guess i missed that in the documentation.

-Murry