# How to create a static html page that has partials?

**URL:** https://discourse.gohugo.io/t/how-to-create-a-static-html-page-that-has-partials/770
**Category:** support
**Created:** [February 22, 2015, 11:39pm UTC](https://discourse.gohugo.io/t/how-to-create-a-static-html-page-that-has-partials/770 "2015-02-22T23:39:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yangity](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yangity](https://discourse.gohugo.io/u/yangity)
#### Post date: [February 22, 2015, 11:39pm UTC](https://discourse.gohugo.io/t/how-to-create-a-static-html-page-that-has-partials/770/1 "2015-02-22T23:39:32Z")

</div>

I’d also like to be able to create some ‘static’ content, that is, .html files that also make use of the partial templates I’ve created. My use case is that I want a ‘/projects.html’ page that will also use my sidebar partial.

Thanks!

---

<div class="post-metadata">

### Author: ![michael\_henderson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/michael_henderson/32/10490_2.png) [@michael\_henderson](https://discourse.gohugo.io/u/michael_henderson)
#### Post date: [February 23, 2015, 12:20am UTC](https://discourse.gohugo.io/t/how-to-create-a-static-html-page-that-has-partials/770/2 "2015-02-23T00:20:35Z")

</div>

Check out the discussion on [http://discuss.gohugo.io/t/creating-static-content-that-uses-partials/265](http://discuss.gohugo.io/t/creating-static-content-that-uses-partials/265)

---

<div class="post-metadata">

### Author: ![royston](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/royston/32/385_2.png) [@royston](https://discourse.gohugo.io/u/royston)
#### Post date: [April 16, 2015, 7:41am UTC](https://discourse.gohugo.io/t/how-to-create-a-static-html-page-that-has-partials/770/3 "2015-04-16T07:41:50Z")

</div>

That’s the post Michael mentioned, in particular, use this comment in the thread:

> **[Creating 'static' content that uses partials](https://discourse.gohugo.io/t/creating-static-content-that-uses-partials/265/19)**
>
> Here is a way I’ve found to address this issue. It relies on existing Hugo functionality, albeit some undocumented things. 1. Organize content in the content folder Organize the content in your content folder the way you want it to be organized...

  
it worked for me.

Basically, you put static pages into /content/, add front matter and state layout. Then create the actual layouts and they will connect to static content pages, giving you all the power of templates, within static HTML’s.

The unintuitive part is how exactly to set up the front matter on static HTML’s in /content/, and how to prepare the custom layout files for them. Happy hacking!
