# Embed markdown file in template (GetPage) without generating stand-alone URL for it

**URL:** <https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533>\
**Category:** support\
**Created:** [April 26, 2021, 8:15am UTC](https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533 "2021-04-26T08:15:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![idarek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/idarek/32/26229_2.png) [@idarek](https://discourse.gohugo.io/u/idarek)\
**Post date:** [April 26, 2021, 8:15am UTC](https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533/1 "2021-04-26T08:15:00Z")

</div>

Hi.  
I am trying to build into a theme content that for front-page will be taken from 3 different markdown files stored in /content directory.

Doing that, so the code, from content (that will be edited by user) stays separately.

I am using .GetPage for it and all working great apart of the fact, that files that I embedding are generated with separate URL for themselves.

Is there a way that Markdown file in content will be used, but there will be no URL generated for it?

Or maybe different approach?

---

<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:** [April 26, 2021, 8:42am UTC](https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533/2 "2021-04-26T08:42:29Z")

</div>

> [@idarek](#):
>
> Is there a way that Markdown file in content will be used, but there will be no URL generated for it?

Yes.

We used to call this “headless bundles”, which is what you get when putting `headless: true` in the frontmatter of that content file.

Note that we have since then expanded that syntax with some more options:

> **[Build options](https://gohugo.io/content-management/build-options/#readout)**
>
> Build options help define how Hugo must treat a given page when building the site.

Also, I would recommend having a look at the `cascade` keyword, which you could use for, say, creating a headless section where you store all of these pages.

---

<div class="post-metadata">

**Author:** ![idarek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/idarek/32/26229_2.png) [@idarek](https://discourse.gohugo.io/u/idarek)\
**Post date:** [April 26, 2021, 8:46am UTC](https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533/3 "2021-04-26T08:46:23Z")

</div>

Super, thank you. Will have a try.

---

<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:** [April 28, 2021, 8:46am UTC](https://discourse.gohugo.io/t/embed-markdown-file-in-template-getpage-without-generating-stand-alone-url-for-it/32533/4 "2021-04-28T08:46:51Z")

</div>

Closed on April 28, 2021, 8:46am UTC

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