# Linking rather than copying page/static resources

**URL:** <https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657>\
**Category:** support\
**Created:** [October 13, 2026, 10:01am UTC](https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657 "2026-10-13T10:01:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natural\_Nationalism](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/natural_nationalism/32/24928_2.png) [@Natural\_Nationalism](https://discourse.gohugo.io/u/Natural_Nationalism)\
**Post date:** [October 13, 2026, 10:01am UTC](https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657/1 "2026-10-13T10:01:47Z")

</div>

Hi, is there a way to link to resources instead of copying them when building site (as opposed to running the server) ?  
I willhave to self-host a website, so people can access multimedia archives with dozens if not hundreds of GBs. Problem is, I don’t much space in my disk. Enough for the archives, but not for twice that amount.  
So rather than copying static/, it would be great if people could simply access it, with hugo linking its content into the build directory. Or something to that effect.  
How else would you do this ?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [October 13, 2026, 10:59am UTC](https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657/2 "2026-10-13T10:59:41Z")

</div>

> [@Natural\_Nationalism](#):
>
> Hi, is there a way to link to resources instead of copying them when building site (as opposed to running the server) ?

No. But there’s [Add hardlink support in /public by bep · Pull Request #15380 · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/pull/15380)

I need to think a little before merging that one, as it became a little more involved than I first thought (hard links means that you on some level modifies the source files).

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [October 13, 2026, 2:26pm UTC](https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657/3 "2026-10-13T14:26:03Z")

</div>

dunno how this performs or is practical:

- place your images in your build result folder `public/images`

- make sure to not publish anything there when building

- use `public` as website root folder

- write a partial to recursively walk the tree using [os](https://gohugo.io/functions/os/) functions.  
maybe a content adapter to create a list to traverse

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [October 15, 2026, 2:26pm UTC](https://discourse.gohugo.io/t/linking-rather-than-copying-page-static-resources/57657/4 "2026-10-15T14:26:22Z")

</div>

Closed on October 15, 2026, 2:26pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
