# How not to render content as a page

**URL:** <https://discourse.gohugo.io/t/how-not-to-render-content-as-a-page/2208>\
**Category:** support\
**Created:** [December 3, 2015, 3:27pm UTC](https://discourse.gohugo.io/t/how-not-to-render-content-as-a-page/2208 "2015-12-03T15:27:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![copepod](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/copepod/32/11136_2.png) [@copepod](https://discourse.gohugo.io/u/copepod)\
**Post date:** [August 25, 2019, 12:39pm UTC](https://discourse.gohugo.io/t/how-not-to-render-content-as-a-page/2208/10 "2019-08-25T12:39:49Z")

</div>

Yes, there is a way.  
Put this into the baseof.html  
{{ if .Params.render }}  
page goes here  
{{ end }}  
And put this into frontmatter of pages that should be rendered  
render = true  
All other x.md files will not be rendered by hugo command.  
Note: the hugo server will still render all pages.  
Note: also put the code into the sitemap.xml [How to omit page from sitemap](https://discourse.gohugo.io/t/how-to-omit-page-from-sitemap/1126) (But use current sitemap.xml from [https://gohugo.io/templates/sitemap-template/](https://gohugo.io/templates/sitemap-template/))

---

_[View the full topic](https://discourse.gohugo.io/t/how-not-to-render-content-as-a-page/2208)._
