# How do I host my hugo site on github with papermod theme?

**URL:** <https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920>\
**Category:** support\
**Created:** [May 30, 2025, 8:03am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920 "2025-05-30T08:03:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kryzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kryzen/32/24647_2.png) [@Kryzen](https://discourse.gohugo.io/u/Kryzen)\
**Post date:** [May 30, 2025, 8:03am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/1 "2025-05-30T08:03:49Z")

</div>

I’ve tried so much but o matter how many times i push it to github it still doesn’t show css.

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [May 30, 2025, 8:20am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/2 "2025-05-30T08:20:54Z")

</div>

Welcome to the forum,

> [@Kryzen](#):
>
> I’ve tried so much but o matter how many times i push it to github it still doesn’t show css.

Unfortunately you provided a black box and tell it does not work. There are so many points where you could have done something wrong…

please have a look at [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132/2) especially

> Let us see your code
> 
> Include a **link to the source code repository** of your project, because we really need the _context_ of seeing your templates and partials to be able to help you. It is trivial to do a quick `git clone` on your repo, then run `hugo server` in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
> 
> If you can’t share your repository for whatever reason, consider creating a dummy repo that you _can_ share, which reproduces the problem you’re experiencing.

---

<div class="post-metadata">

**Author:** ![Kryzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kryzen/32/24647_2.png) [@Kryzen](https://discourse.gohugo.io/u/Kryzen)\
**Post date:** [May 30, 2025, 8:58am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/3 "2025-05-30T08:58:58Z")

</div>

Yeah, sure.

> **[GitHub - frost4graves/Hugo-blog](https://github.com/frost4graves/Hugo-blog)**
>
> Contribute to frost4graves/Hugo-blog development by creating an account on GitHub.

Here’s my link for the hugo files and I’m hosting the /public in [GitHub - frost4graves/frost4graves.github.io](https://github.com/frost4graves/frost4graves.github.io)

Sorry, for causing the issue, I’m inexperienced.

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [May 30, 2025, 9:41am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/4 "2025-05-30T09:41:15Z")

</div>

1. looks like you included PaperMod as a submodule in your “HugoBlog” repository, but you missed to commit the .gitmodules.

2. in your frost4graves repository you deploy your commited public stuff (which is already a full static HTML site) using a Jekyll build workflow.  
use either _Static HTML By GitHub Actions_ or _serve from branch_ in your Gihub Pages settings.

the css is not loaded (error in browser console about an integrity check. Maybe using the _Static HTML By GitHub Actions_ will work, but I’m not sure.

if you do not insist to separate source and target repo the common way to deploy a hugo site would be:

- store your site _sources_ in the [frost4graves.github.io](http://frost4graves.github.io) repo  
make sure to properly handle your theme as submodule
- use a github workflow to build with hugo and publish. See [Host on GitHub Pages](https://gohugo.io/host-and-deploy/host-on-github-pages/#step-6)

---

<div class="post-metadata">

**Author:** ![Kryzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kryzen/32/24647_2.png) [@Kryzen](https://discourse.gohugo.io/u/Kryzen)\
**Post date:** [May 30, 2025, 9:49am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/5 "2025-05-30T09:49:05Z")

</div>

Wait, I’m not using a submodule of the theme on my hugo-blog repo. Sir, can you please re-check if I’m missing something?

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [May 30, 2025, 10:05am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/6 "2025-05-30T10:05:18Z")

</div>

> [@Kryzen](#):
>
> Wait, I’m not using a submodule of the theme on my hugo-blog repo

since when?

i cloned

```auto
N 4f6d1de [2025-05-30 14:25:34] (origin/main, origin/HEAD) : Clean build

```

now

```auto
N 4311706 [2025-05-30 14:58:35] : Fixed again
N fdb1323 [2025-05-30 14:49:42] : Fixed
N 503ee93 [2025-05-30 14:45:25] : Add PaperMod as regular folder
N 3cf2d83 [2025-05-30 14:40:54] : Clean build
N 195762a [2025-05-30 14:39:49] : Clean build
N 4f6d1de [2025-05-30 14:25:34] : Clean build

```

so 1. seems fixed. head over to 2.

---

<div class="post-metadata">

**Author:** ![Kryzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kryzen/32/24647_2.png) [@Kryzen](https://discourse.gohugo.io/u/Kryzen)\
**Post date:** [May 30, 2025, 10:38am UTC](https://discourse.gohugo.io/t/how-do-i-host-my-hugo-site-on-github-with-papermod-theme/54920/7 "2025-05-30T10:38:47Z")

</div>

Oh, yeah I figured it out. Thank you so much sir to help me out and now I’m hosting it on [frost4graves.github.io](http://frost4graves.github.io)

Tysmm!!!.
