# Hugo theme not showing on github pages

**URL:** <https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445>\
**Category:** support\
**Created:** [July 25, 2023, 10:32am UTC](https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445 "2023-07-25T10:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KhaaL](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/khaal/32/19954_2.png) [@KhaaL](https://discourse.gohugo.io/u/KhaaL)\
**Post date:** [July 25, 2023, 10:32am UTC](https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445/1 "2023-07-25T10:32:46Z")

</div>

Hi all, I’m new to Hugo and have just created some content. The webpage looks fine in `http://localhost:1313/`, but when I browse `khaal.github.io`, I only get the index file without the theme nor the menu.

After each file, I run the following command to ensure everything is pushed from the projects root directory:

`hugo && git add --all && git commit -m "commit" && git push -u origin main`

Repo is at:

- [GitHub - KhaaL/KhaaL.github.io](https://github.com/KhaaL/KhaaL.github.io)

Things I’ve done:

- I have already checked baseurl value: baseurl=“[https://khaal.github.io](https://khaal.github.io)” (tried with and without forward slash at the end).
- Web-broser console dosen’t show any errors (except for favicon.ico - WIP).
- Made sure that Github actions finishes successfully.
- I’ve tried with different themes, to no avail (themes has been added via `git submodule add` command to /themes/ folder)

Thank you in advance!

Edit: I assume the baseURL part is irrelevant since `.github/workflows/hugo.yaml` has its own configuration for it:  
run: |  
hugo   
–gc   
–minify   
–baseURL “${{ steps.pages.outputs.base\_url }}/”  
(source: gohugo io /hosting-and-deployment/hosting-on-github/)

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [July 25, 2023, 2:15pm UTC](https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445/2 "2023-07-25T14:15:47Z")

</div>

Start by deleting all the files you by mistake added in this commit:

> <https://github.com/KhaaL/KhaaL.github.io/commit/fb165c59e2616943857a8e44612b2ce413af5eda>

The site that Hugo builds end up inside the “public” dir. You have added a bunch of HTML etc. files to the repo root that confuses GitHub Pages.

---

<div class="post-metadata">

**Author:** ![KhaaL](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/khaal/32/19954_2.png) [@KhaaL](https://discourse.gohugo.io/u/KhaaL)\
**Post date:** [July 25, 2023, 2:29pm UTC](https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445/3 "2023-07-25T14:29:59Z")

</div>

Thank you very much. Deleting the files, and doing a git pull locally to keep things synced, worked! Now my page on github is displayed correctly 😃

---

<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:** [July 27, 2023, 2:30pm UTC](https://discourse.gohugo.io/t/hugo-theme-not-showing-on-github-pages/45445/4 "2023-07-27T14:30:30Z")

</div>

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