Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Adding a Blog page to a static site

Hi everyone,

Without using WordPress or any form of CMS, what is the best way to incorporate a blog page into a static html/css website? Many modern websites have at least one blog page, but it doesn't look they are all built on a CMS platform. Say a business has always run a static website (one with your basic information: About, Contact Us, Product Page, etc), but they want to incorporate a blog page. Does anyone have any idea as to how to proceed without redesigning the website on a CMS platform just for the blog?


2 Answers

Jack Spangenberg
Jack Spangenberg
643 Points

Here is a very basic template you can try and use, keep in mind you have to code in all entries. You can make a static page for each post with the buttons if you want.


Kevin Korte
Kevin Korte
28,148 Points

If you're going to create something dynamic like a blog, you should use a CMS of some sort, otherwise it will grow to an unmaintainable level, and you'll basically never be able to update the whole look without updating ever....single....file.

There are a lot of CMS's, even static file generator CMS's like Jekyll to name one. I bet most of these company blogs are built on a CMS. You could even blog on Medium.com, and use Medium's API to pull the blog information into your site, so it would 100% like the blog was all done on your site, they would read it on your site, but the data actually would live on Medium.com, as another thought.

Lots of ways to make this work, I just want to encourage you to use a CMS of some sort.