# Adding new blogs

**URL:** <https://discourse.gohugo.io/t/adding-new-blogs/9892>\
**Category:** support\
**Created:** [January 7, 2018, 5:24pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892 "2018-01-07T17:24:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayank](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mayank](https://discourse.gohugo.io/u/mayank)\
**Post date:** [January 7, 2018, 5:24pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/1 "2018-01-07T17:24:14Z")

</div>

Hey!

I started writing a blog using Hugo with Github pages following the tutorial. ([https://www.youtube.com/watch?v=oUjk6wpJn7I&t=688s](https://www.youtube.com/watch?v=oUjk6wpJn7I&t=688s)) .

Basically the workflow mentioned is making a repository related to the new blog(this is also how I want to manage my projects) as a complete hugo site and then I am writing the files(using hugo -d …/username.github.io).  
But the issue I am facing is, whenever I am adding a new blog, the previous blog entries are not getting shown in the index.html file.  
How can I fix this with effective blog handling?

---

<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:** [January 7, 2018, 5:29pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/2 "2018-01-07T17:29:50Z")

</div>

> [@mayank](#):
>
> But the issue I am facing is, whenever I am adding a new blog, the previous blog entries are not getting shown in the index.html file.
> 
> How can I fix this with effective blog handling?

Sounds like your `index.html` layout template is configured to display the latest entry or that you are overwriting your articles.

Post a link to your Github repo so that we can have a look.

---

<div class="post-metadata">

**Author:** ![mayank](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mayank](https://discourse.gohugo.io/u/mayank)\
**Post date:** [January 7, 2018, 6:20pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/3 "2018-01-07T18:20:54Z")

</div>

My blog repo: [https://github.com/MayankShah1/mayankshah1.github.io](https://github.com/MayankShah1/mayankshah1.github.io)  
My second blogpost repo: [https://github.com/MayankShah1/Hubway-Visualization-Challenge](https://github.com/MayankShah1/Hubway-Visualization-Challenge)

Currently I have not pushed my changes to github after writing my files to my local system.

---

<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:** [January 7, 2018, 6:49pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/4 "2018-01-07T18:49:44Z")

</div>

> [@mayank](#):
>
> My second blogpost repo: [GitHub - MayankShah1/Hubway-Visualization-Challenge: Trying out the Hubway Visualization Challenge](https://github.com/MayankShah1/Hubway-Visualization-Challenge)

The above is your repo with the source code of your Hugo site. It has one content file in it. Everything you want to publish goes here under /content/.

And the repo below that is connected to your Github Pages contains your generated site.

> [@mayank](#):
>
> My blog repo: [GitHub - MayankShah1/mayankshah1.github.io](https://github.com/MayankShah1/mayankshah1.github.io)

Not sure what you’re trying to do with 2 different repos.

Read the [Host on Github Guide](https://gohugo.io/hosting-and-deployment/hosting-on-github/#readout) from the Hugo Docs.

---

<div class="post-metadata">

**Author:** ![mayank](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mayank](https://discourse.gohugo.io/u/mayank)\
**Post date:** [January 7, 2018, 7:01pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/5 "2018-01-07T19:01:29Z")

</div>

It would be really helpful if you see the video I shared from which I followed the workflow.  
I thought I can somehow every time write my files into [username.github.io](http://username.github.io) from any repo( i did with my test-blog repo on my github)

I think I have somehow managed the answer, I just need to write a new mardown file in /content/post/ ?

---

<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:** [January 7, 2018, 7:03pm UTC](https://discourse.gohugo.io/t/adding-new-blogs/9892/6 "2018-01-07T19:03:26Z")

</div>

No need for me to see the video. I don’t use Github for hosting and I am a busy man.

> [@mayank](#):
>
> I just need to write a new mardown file in /content/post/ ?

Yes. And then do whatever you to do to deploy.
