# Base template not loading

**URL:** <https://discourse.gohugo.io/t/base-template-not-loading/24649>\
**Category:** support\
**Created:** [April 11, 2020, 9:44am UTC](https://discourse.gohugo.io/t/base-template-not-loading/24649 "2020-04-11T09:44:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sientelo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sientelo/32/11043_2.png) [@sientelo](https://discourse.gohugo.io/u/sientelo)\
**Post date:** [April 11, 2020, 9:44am UTC](https://discourse.gohugo.io/t/base-template-not-loading/24649/1 "2020-04-11T09:44:11Z")

</div>

I have created a directory called \_default and created a file baseof.html under it.

[![](https://i.imgur.com/MQI1AX3.png) ](https://i.imgur.com/MQI1AX3.png)

But when I load the Hugo site on my local machine the baseof.html file doesnt load, instead I just see what was there before

[![](https://i.imgur.com/3AP2p4w.png) ](https://i.imgur.com/3AP2p4w.png)

I am a Hugo newb, am currently going through the Mike Dane tutorials on Youtube.

---

<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 11, 2020, 10:09am UTC](https://discourse.gohugo.io/t/base-template-not-loading/24649/2 "2020-04-11T10:09:30Z")

</div>

Hey,

Your baseof.html looks fine, so I assume problem lives elsewhere.

Note that a base template does not make sense. You need some other template(s) to make it work. And for them to use the base template, they need to “define” one or more of the sections, e.g. `{{ define “main” }}"

---

<div class="post-metadata">

**Author:** ![sientelo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sientelo/32/11043_2.png) [@sientelo](https://discourse.gohugo.io/u/sientelo)\
**Post date:** [April 11, 2020, 10:15am UTC](https://discourse.gohugo.io/t/base-template-not-loading/24649/3 "2020-04-11T10:15:08Z")

</div>

thanks I understand now. I created single and list templates which fixed the problem. I thought I created them first time around and it didnt work so I deleted them and started from scratch incorrectly assuming the problem was the baseof file.

thanks for your help

---

<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 13, 2020, 10:18am UTC](https://discourse.gohugo.io/t/base-template-not-loading/24649/4 "2020-04-13T10:18:43Z")

</div>

Closed on April 13, 2020, 10:18am UTC

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