# How do we have global assets?

**URL:** <https://zola.discourse.group/t/how-do-we-have-global-assets/26>\
**Category:** Uncategorized\
**Created:** [December 11, 2018, 12:06pm UTC](https://zola.discourse.group/t/how-do-we-have-global-assets/26 "2018-12-11T12:06:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muzz](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/muzz/32/10_2.png) [@muzz](https://zola.discourse.group/u/muzz)\
**Post date:** [December 11, 2018, 12:06pm UTC](https://zola.discourse.group/t/how-do-we-have-global-assets/26/1 "2018-12-11T12:06:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [December 11, 2018, 12:14pm UTC](https://zola.discourse.group/t/how-do-we-have-global-assets/26/2 "2018-12-11T12:14:54Z")

</div>

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](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](https://github.com/getzola/zola/tree/master/docs/static)

---

<div class="post-metadata">

**Author:** ![muzz](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/muzz/32/10_2.png) [@muzz](https://zola.discourse.group/u/muzz)\
**Post date:** [December 13, 2018, 10:06am UTC](https://zola.discourse.group/t/how-do-we-have-global-assets/26/3 "2018-12-13T10:06:48Z")

</div>

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

-Murry
