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

Help and advice on integrating a blog into my site

This may be a bit broad but i am really trying to do some research for adding a blog page into my site and i don't know how to go about it :( there isn't many videos on treehouse specifically for this as well. I don't want to have to build my site as a wordpress theme i just want to have a page that is linked within my site that allows me to have a blogging area are there any suggestions, tutorials or tips you can give me if you have a blog on your site thanks

7 Answers

Stephen O'Connor
Stephen O'Connor
22,291 Points

Is it a static site that you have at the moment or is it built using a content management system?

Static just pure HTML & CSS

Stephen O'Connor
Stephen O'Connor
22,291 Points

Hmm ... with a CMS it would be simple (kind of) but a static site I am not so sure. I have never written a blog before so I am not sure if WordPress.com or Blogger or equivalent offer a way of styling their blogs to suit your site and then use a custom url (www.your-site.com/blog for example) ... I am sure they would, but not sure they'd be free.

Sorry I can't be of further help.

Actually you sort of gave me an idea haha thanks you actually did help opened up my mind a little :)

If you website is static

1) You could create another page (html and css) and keep adding content. One problem is, every time you add a new content you will have to manually upload the edited page to the server. But if you plan to write like once a week, it should be fine.

2) Other way is to integrate wordpress.
Create a link in your websites main nav bar called blog. Now create a sub domain called blog.yourwebsitename.com
To this subdomain add the wordpress and tune wordpress to match to your currently style of website. Problem with this is, its code extensive but is a permanent solution

3) Else if you know php to a certain level, you can create your own basic CMS and use it.

Hope it helps

Benjamin Dalton
Benjamin Dalton
10,725 Points

I hear good things about statamic!

Philip Cox
Philip Cox
14,818 Points

I once incorporated my WP blog onto my server, there are some good videos to do this on the net. Now I would just use PHP to do this with an admin page hidden with .htaccess to post new posts. The PHP lessons here will show you how to incorporate a DB to your site and add data to it and then display it on your site.

Sean Edevane
Sean Edevane
9,133 Points

There are a bunch of static site generation tools that are "blog aware." Jekyll is the most referenced for that purpose and I've heard good things about it. The ideas behind it are in this, Blogging Like a Hacker.

Otherwise there's a big list of static site generators. There's an option for just about any language / framework combination you can think of. The one major downside is that to get the most of them you would learn the templating languages and pre-processors that each uses, but they work just fine with pure HTML & CSS too.

Kennard McGill
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Kennard McGill
Full Stack JavaScript Techdegree Graduate 43,179 Points

You'd probably have to customize a WordPress theme that looks like your static site and link to the blog platform from your navigation link.

If you are familiar with GitHub pages you can move your static html pages over to GitHub and use Jekyll to integrate blogging which is probably what you'd want. The syntax for styling the page may take some getting use to but it's doable. If your site is minimal and not graphic intensive this might but a solid option.

Check out this write up: http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/

Let us know which way you decide to go.

I'm struggling with this as well for my portfolio site. Should I blog or should I just showcase my work? I'm leaning just create a custom WordPress theme and if I decide to blog one day I'll be set up to do so.

Hey Tunde, if you wanted to convert your site over to Wordpress, you could do so easily with a plugin like HTML To WordPress Converter, or what I like to recommend to those wanting a simple and low resource consuming blog, to try Ghost.

However, for Ghost, your host will have to support it, and I see you're using Siteground. So maybe check out their tutorials on how to install Wordpress. You'd simply add the folder you want Wordpress installed in, and the installer will create it on the server, while providing you with a blog via: www.tunds.me/blog, for example.

If you need more help, or suggestions let me know, and I also recommend Genesis for simplicity and speed! :smiley:

Sean Edevane
Sean Edevane
9,133 Points

Seconding Dustin's recommendation of Ghost, it's fun to use. Here's a list of supporting hosts.

Definitely a big fan of Genesis too, as far as Wordpress themes go.