# Adding blog posts to a page-based theme

**URL:** <https://discourse.gohugo.io/t/adding-blog-posts-to-a-page-based-theme/50573>\
**Category:** support\
**Created:** [July 5, 2024, 7:11pm UTC](https://discourse.gohugo.io/t/adding-blog-posts-to-a-page-based-theme/50573 "2024-07-05T19:11:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugoMike](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@HugoMike](https://discourse.gohugo.io/u/HugoMike)\
**Post date:** [July 5, 2024, 7:11pm UTC](https://discourse.gohugo.io/t/adding-blog-posts-to-a-page-based-theme/50573/1 "2024-07-05T19:11:14Z")

</div>

I find it much easier to add css later than to work with someone elses, so I’m trying to build my own blog.

I’m trying to make my own hugo theme based off the information in this post [https://discourse.gohugo.io/t/solved-how-to-create-a-one-page-site/14228/7?u=hugomike](https://discourse.gohugo.io/t/solved-how-to-create-a-one-page-site/14228/7)

That post tells you how to set up a theme with pages. However, it doesn’t provide the code/html needed to blog.

Can anyone explain how to add

- blog posts
- a page with list of all blog post titles

This is the code that I have so far [GitHub - MikeMitchellWebDev/hugo-blog](https://github.com/MikeMitchellWebDev/hugo-blog) which is basically just copied from that post linked to above.

---

<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:** [July 5, 2024, 7:18pm UTC](https://discourse.gohugo.io/t/adding-blog-posts-to-a-page-based-theme/50573/2 "2024-07-05T19:18:28Z")

</div>

Hugo itself providas a bare post theme skeleton incl. example posts

> **[hugo new theme](https://gohugo.io/commands/hugo_new_theme/)**
>
> hugo new theme Create a new theme (skeleton)
> Synopsis Create a new theme (skeleton) called \[name\] in ./themes. New theme is a skeleton. Please add content to the touched files. Add your name to the copyright line in the license and adjust the...

Check out whats added to the theme layouts and content folder

---

<div class="post-metadata">

**Author:** ![HugoMike](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@HugoMike](https://discourse.gohugo.io/u/HugoMike)\
**Post date:** [July 5, 2024, 8:47pm UTC](https://discourse.gohugo.io/t/adding-blog-posts-to-a-page-based-theme/50573/3 "2024-07-05T20:47:49Z")

</div>

Thank you. It’s much easier with that.
