# Should I upload all of \_site to Github Pages?

**URL:** <https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657>\
**Category:** Help\
**Created:** [February 20, 2019, 8:16pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657 "2019-02-20T20:16:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DipperDolphin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dipperdolphin/32/1549_2.png) [@DipperDolphin](https://talk.jekyllrb.com/u/DipperDolphin)\
**Post date:** [February 20, 2019, 8:16pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/1 "2019-02-20T20:16:37Z")

</div>

What is the point of doing this? I have added everything but `sitemap.xml` to `.gitignore`, as it doesn’t seem to have a need.

Is this bad practice?

Thanks!

---

<div class="post-metadata">

**Author:** ![DipperDolphin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dipperdolphin/32/1549_2.png) [@DipperDolphin](https://talk.jekyllrb.com/u/DipperDolphin)\
**Post date:** [February 20, 2019, 8:26pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/2 "2019-02-20T20:26:45Z")

</div>

For clarification, this is under my `/_site` folder:

```
*
!sitemap.xml
!.gitignore
```

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [February 20, 2019, 8:29pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/3 "2019-02-20T20:29:30Z")

</div>

Depends. If you’re not using any blacklisted plugins then there’s no benefit at all to pushing the contents of your `_site` folder. GitHub Pages runs Jekyll, the whole point is you push up your source files and it will build and then host the contents of `_site`.

The only reason I can think of that you’d want to push `_site` up to GH and use it as a “dumb” host is if you need to build the site locally (or with a CI tool) because you’re using plugins not supported on GH Pages.

---

<div class="post-metadata">

**Author:** ![DipperDolphin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dipperdolphin/32/1549_2.png) [@DipperDolphin](https://talk.jekyllrb.com/u/DipperDolphin)\
**Post date:** [February 20, 2019, 8:30pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/4 "2019-02-20T20:30:33Z")

</div>

Okay, thanks. I am not doing that, so guess I won’t.

> [@Whats with all the json at the top of my posts?](http://talk.jekyllrb.com/t/whats-with-all-the-json-at-the-top-of-my-posts/2650):
>
> Hi all, What’s with all the json at the top of my posts? For example, with this one: There’s a good hundred lines or so with json. How can I remove this/does it serve a purpose? Thanks

I am facing this issue and trying to fix it. Is there any way I can force Github pages to rebuild?

Thanks!

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [February 20, 2019, 8:36pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/5 "2019-02-20T20:36:21Z")

</div>

GitHub Pages will rebuild your site anytime you push up a commit. Though if you are only pushing up the compiled `_site` folder it’s not going to have anything to build.

You’ll need to remove that and push up the source `.md` files, `_layouts,`\_includes`,`\_sass`, assets, etc. instead.

---

<div class="post-metadata">

**Author:** ![DipperDolphin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dipperdolphin/32/1549_2.png) [@DipperDolphin](https://talk.jekyllrb.com/u/DipperDolphin)\
**Post date:** [February 20, 2019, 8:36pm UTC](https://talk.jekyllrb.com/t/should-i-upload-all-of-site-to-github-pages/2657/6 "2019-02-20T20:36:37Z")

</div>

Okay, thank you very much!
