# Post in 'static' folder; linking internally

**URL:** <https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675>\
**Category:** support\
**Created:** [February 26, 2020, 9:16am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675 "2020-02-26T09:16:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablobernabeu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pablobernabeu/32/10708_2.png) [@pablobernabeu](https://discourse.gohugo.io/u/pablobernabeu)\
**Post date:** [February 26, 2020, 9:16am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/1 "2020-02-26T09:16:56Z")

</div>

Hello,

I would like to ask how to include a post from the ‘static’ folder. It has to be in that folder because it’s a [‘flexdashboard’](https://rmarkdown.rstudio.com/flexdashboard/) site. Would there be a way–if hacky–to introduce this page and let it have an internal look, opening in the same window, rather than an external one?

Thank you very much indeed

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [February 26, 2020, 6:42pm UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/2 "2020-02-26T18:42:51Z")

</div>

Files in `static` get copied to the root, so if you have `static/doc.html` it will render at `example.org/doc.html`. You can link to that. 🕶

---

<div class="post-metadata">

**Author:** ![pablobernabeu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pablobernabeu/32/10708_2.png) [@pablobernabeu](https://discourse.gohugo.io/u/pablobernabeu)\
**Post date:** [February 27, 2020, 7:40am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/3 "2020-02-27T07:40:42Z")

</div>

Thank you! I can see that, but how can I let this post be presented among the other posts? I can’t seem to find any area where I could do this. In case you know of any example of this, or any documentation that directly addresses this issue, I’d be really grateful for any pointers.

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [February 27, 2020, 8:13am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/4 "2020-02-27T08:13:46Z")

</div>

I think you are asking about integrating “flexdashboard” into Hugo. The answer is: maybe.

Most things on the web load a script and get fed some data file. Hugo does that. I don’t know if the thing you want does that, because you said:

> [@pablobernabeu](#):
>
> It has to be in that folder because it’s a [‘flexdashboard’](https://rmarkdown.rstudio.com/flexdashboard/) site.

and then said,

> [@pablobernabeu](#):
>
> but how can I let this post be presented among the other posts?

makes me think you don’t know how that works. And it’s an R thing, which I don’t know.

But again, we can rely on the fact that most things are a script and some data, and Hugo’s got that covered. Read every page in the docs, twice. 🕶

---

<div class="post-metadata">

**Author:** ![pablobernabeu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pablobernabeu/32/10708_2.png) [@pablobernabeu](https://discourse.gohugo.io/u/pablobernabeu)\
**Post date:** [February 27, 2020, 8:22am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/5 "2020-02-27T08:22:44Z")

</div>

Thank you!

My question is not specific to flexdashboard actually. It could be anything that’s placed in ‘static’.

I would be grateful for any specific pointers from anyone.

P.S. I only mentioned the Flexsdashboard because it cannot be rendered within the theme, and therefore has to go to ‘static’.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 27, 2020, 8:30am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/6 "2020-02-27T08:30:23Z")

</div>

No. Items in the static folder by default are served outside Hugo’s content management.

There is no template to control items in the static directory because it is not meant for that.

---

<div class="post-metadata">

**Author:** ![pablobernabeu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pablobernabeu/32/10708_2.png) [@pablobernabeu](https://discourse.gohugo.io/u/pablobernabeu)\
**Post date:** [February 27, 2020, 8:34am UTC](https://discourse.gohugo.io/t/post-in-static-folder-linking-internally/23675/7 "2020-02-27T08:34:55Z")

</div>

Thank you very much!
