# Homepage using single layout

**URL:** <https://discourse.gohugo.io/t/homepage-using-single-layout/24247>\
**Category:** support\
**Created:** [March 25, 2020, 8:52pm UTC](https://discourse.gohugo.io/t/homepage-using-single-layout/24247 "2020-03-25T20:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Kirk](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/steven_kirk/32/10890_2.png) [@Steven\_Kirk](https://discourse.gohugo.io/u/Steven_Kirk)\
**Post date:** [March 25, 2020, 8:52pm UTC](https://discourse.gohugo.io/t/homepage-using-single-layout/24247/1 "2020-03-25T20:52:03Z")

</div>

I have a site where the homepage should use the same layout as other single pages. Is there a way to do this? From my experiments, `layouts/index.html` uses `layouts/_default/baseof.html` but not `layouts._default/single.html` as its base and I can’t work how to tell it to do so.

I don’t want to put everything in `baseof.html` because there will be other layouts that don’t want to use the same layout as the homepage/single pages.

---

<div class="post-metadata">

**Author:** ![maara](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maara/32/10851_2.png) [@maara](https://discourse.gohugo.io/u/maara)\
**Post date:** [March 26, 2020, 1:02am UTC](https://discourse.gohugo.io/t/homepage-using-single-layout/24247/2 "2020-03-26T01:02:10Z")

</div>

Your articulation is not very clear so it’s hard for me to understand your situation.  
Anyway I think studying how the base template works might help you.  
This page with a nice video helped me a lot at least:

> **[Base Templates and Blocks](https://gohugo.io/templates/base/)**
>
> The base and block constructs allow you to define the outer shell of your master templates (i.e., the chrome of the page).

  
If your layouts will differ a lot you can for example just have the basic HTML HEAD BODY structure defined in the baseof.html and define everything else in specific layouts.

See index.html uses the baseof.html the same way single.html uses baseof.html (baseof.html defines places for blocks insertions while the blocks are defined in index and single and other specific layouts) - so you probably can’t make index.html use single.html as its base because single.html is no base at all. But you can make a partial/commonpartofyourlayouts.html and call it both from index.html and single.html.

Plus one more thing to study - lookup order for the homepage layouts:

> **[Hugo's Lookup Order](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-home-page)**
>
> Hugo searches for the layout to use for a given page in a well defined order, starting from the most specific.
