# Blank white page when connecting to localhost:1313

**URL:** <https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128>\
**Category:** support\
**Created:** [April 15, 2019, 5:59pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128 "2019-04-15T17:59:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 15, 2019, 5:59pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/1 "2019-04-15T17:59:18Z")

</div>

Hiya,  
I’m very new to creating websites.

I’m following the giraffe academy tutorials to download the giraffe academy theme at [https://github.com/giraffeacademy/ga-hugo-theme](https://github.com/giraffeacademy/ga-hugo-theme).

It looks like I have set everything up including editing the config file. But when I use ‘hugo server’ it does not work properly. As a result when I go to `localhost:1313` is it a blank white page - no errors.

I’ve tried using a different theme and got the same result so I don’t think the theme is at fault.

Here is the message I get in cmd:

```auto
c:\Hugo\first_site>hugo server
Building sites … WARN 2019/04/15 18:31:11 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/04/15 18:31:11 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/04/15 18:31:11 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN
+------------------+----+
  Pages | 3
  Paginator pages | 0
  Non-page files | 0
  Static files | 0
  Processed images | 0
  Aliases | 0
  Sitemaps | 1
  Cleaned | 0

Total in 550 ms
Watching for changes in c:\Hugo\first_site\{content,data,layouts,static}
Watching for config changes in c:\Hugo\first_site\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
WARN 2019/04/15 18:32:40 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

```

Please assist?

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 15, 2019, 11:49pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/2 "2019-04-15T23:49:49Z")

</div>

I have also noticed that although I can edit or add to the archetype file in my site, it does not get added to new .md files I create. These still match the default archetype.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 16, 2019, 12:09am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/3 "2019-04-16T00:09:51Z")

</div>

Hi,

Do you have your code somewhere we can look at?

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 12:13am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/4 "2019-04-16T00:13:41Z")

</div>

Which bit do you want? Or how to grab it so you can see?

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 16, 2019, 12:22am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/5 "2019-04-16T00:22:52Z")

</div>

Ideally the whole project, if you have it in a repository somewhere. Otherwise at least the config file, and what your `content` directory looks like. Also, what version hugo are you using?

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 12:31am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/6 "2019-04-16T00:31:03Z")

</div>

Hugo Static Site Generator v0.55.1-223B3C2E windows/amd64 BuildDate: 2019-04-12T09:56:45Z

This the version I am using. I half think it is the way I have set up Hugo (or not) that is causing the problem. I did install git as advised in the quick start tutorial but I do not know where my repository would be. (Sorry.)

Here is my config file:

> baseURL = “[http://example.org/](http://example.org/)”  
> languageCode = “en-us”  
> title = “My New Hugo Site”  
> theme = “ga-hugo-theme”

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 12:43am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/7 "2019-04-16T00:43:09Z")

</div>

My .md files with the content folder all look something like this:

> * * *
> 
> ## title: “D” date: 2019-04-15T20:32:36+01:00 draft: true
> 
> This is dir1/dir2/d.md

My default archetype is this:

> * * *
> 
> ## title: “{{ replace .Name “-” " " | title }}” date: {{ .Date }} draft: false author: Pip

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 16, 2019, 12:58am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/8 "2019-04-16T00:58:34Z")

</div>

Can you verify that your project structure looks something like this?

```auto
.
├── archetypes
│ └── default.md
├── config.toml
├── content
├── data
├── layouts
├── resources
├── static
└── themes
    └── ga-hugo-theme
        ├── archetypes
        │ └── default.md
        ├── layouts
        │ ├── 404.html
        │ ├── _default
        │ │ ├── list.html
        │ │ └── single.html
        │ └── partials
        │ ├── footer.html
        │ └── header.html
        ├── LICENSE.md
        ├── README.md
        └── theme.toml

```

BTW, you can enclose your code blocks in three back ticks to format them properly:

````auto
``` 
code here

``` 

````

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 1:00am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/9 "2019-04-16T01:00:33Z")

</div>

My config.toml file is at the very bottom of the list but other than that, yes.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 16, 2019, 1:04am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/10 "2019-04-16T01:04:47Z")

</div>

Can you try running `hugo server -D`

This is to tell Hugo to build drafts as well.

Also, can you try running `hugo` or `hugo -D` and see if files are generated in `public`?

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 1:16am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/11 "2019-04-16T01:16:35Z")

</div>

So loading draughts let my second test site load - although not the first one - I will have to compare them.

Where am I looking for ‘public’?

If it is c:\users\public then nothing appears to be generating here.

---

<div class="post-metadata">

**Author:** ![funkydan2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/funkydan2/32/5636_2.png) [@funkydan2](https://discourse.gohugo.io/u/funkydan2)\
**Post date:** [April 16, 2019, 3:25am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/12 "2019-04-16T03:25:57Z")

</div>

> [@Pipster](#):
>
> Where am I looking for ‘public’?

You’re looking for that directory in your hugo project (so, most likely under the same directory your `config.toml` file).

---

<div class="post-metadata">

**Author:** ![Pipster](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pipster](https://discourse.gohugo.io/u/Pipster)\
**Post date:** [April 16, 2019, 12:18pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/13 "2019-04-16T12:18:40Z")

</div>

Both my sites are loading properly now.

I think using ‘hugo server -D’ was the key although I have no idea why one site worked before the other.

Stupidly, I don’t think I had saved all the changes I had made before trying to reload the page. So it was loading but showing me an empty page… _facepalm_

I still don’t know where this public folder is - I cannot see one within my Hugo folders. However I do have everything loading for now.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [April 16, 2019, 12:37pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/14 "2019-04-16T12:37:19Z")

</div>

> [@pointyfar](#):
>
> Also, can you try running `hugo` or `hugo -D` and see if files are generated in `public` ?

As mentioned above, you have to run the plain `hugo` command to build public dir.

Or, you can run `hugo server --renderToDisk`

---

<div class="post-metadata">

**Author:** ![gen-li](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gen-li](https://discourse.gohugo.io/u/gen-li)\
**Post date:** [November 21, 2019, 9:44pm UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/15 "2019-11-21T21:44:39Z")

</div>

Make sure you run the terminal from the folder that includes a subfolder called “config”

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 28, 2020, 8:12am UTC](https://discourse.gohugo.io/t/blank-white-page-when-connecting-to-localhost-1313/18128/16 "2020-02-28T08:12:38Z")

</div>


