# GitHub Deployment 404 on content pages

**URL:** <https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655>\
**Category:** support\
**Created:** [April 11, 2020, 12:21pm UTC](https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655 "2020-04-11T12:21:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedrojunqueira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pedrojunqueira/32/11044_2.png) [@pedrojunqueira](https://discourse.gohugo.io/u/pedrojunqueira)\
**Post date:** [April 11, 2020, 12:21pm UTC](https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655/1 "2020-04-11T12:21:50Z")

</div>

Hi All,

I deployed my site on GitHub

All well on the index page but the about and posts page are not working. getting a 404…

On my local server all is working fine.

[Edited after solution]  
Site address is : [https://pedrojunqueira.github.io/blog](https://pedrojunqueira.github.io/blog)

all my project folder on github is: [https://github.com/pedrojunqueira/blog](https://github.com/pedrojunqueira/blog)

One thing that I noticed is that the /public folder is not rendering the posts and about routes… maybe that is the problem. Does anyone know the solution?

Thanks and regards

Pedro

---

<div class="post-metadata">

**Author:** ![pamubay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pamubay/32/17838_2.png) [@pamubay](https://discourse.gohugo.io/u/pamubay)\
**Post date:** [April 11, 2020, 1:10pm UTC](https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655/2 "2020-04-11T13:10:02Z")

</div>

You set your post as a draft here `draft: true` [best-podcasts-post.md](https://github.com/pedrojunqueira/mysite/blob/master/content/posts/best-podcasts-post.md).

And on your [`deploy.sh`](https://github.com/pedrojunqueira/mysite/blob/master/deploy.sh#L9), hugo run without `-D` flag enabled.

to build all the drafts use `hugo -D`, or just make `draft: false` on your post.

---

<div class="post-metadata">

**Author:** ![pedrojunqueira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pedrojunqueira/32/11044_2.png) [@pedrojunqueira](https://discourse.gohugo.io/u/pedrojunqueira)\
**Post date:** [April 11, 2020, 2:50pm UTC](https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655/3 "2020-04-11T14:50:05Z")

</div>

Hi @pamubay thanks. Solved the problem. It was so easy and did not know that detail. Now it is all working. I am simplified the deployment by putting in a docs folder in GitHub and then do a script to deploy to this folder. Regards. Pedro.

---

<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, 2:52pm UTC](https://discourse.gohugo.io/t/github-deployment-404-on-content-pages/24655/4 "2020-04-13T14:52:22Z")

</div>

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