A blog template with a responsive layout.
See it running on Heroku
not really adding much here, just trying to provide the most common starting point for a static blog. it just needs a little bootstrap, which isn't much work but who likes repeating stuff? plus, if i add this template as a common remote in all my blog repositories, then i can just pull in changes to all my blogs. i really think too much.
I was also thinking about using angular - such flash, much state-aware.
however, i thought about SEO and having to run a PhantomJS process,
which undermines the staticness of the blog. there is still a way to do this
without affecting SEO, but it's complicated. this is a blog, which is where
I should be writing this paragraph now...
- change archive.html to posts.html?
- set up different avatars for authors in markdown metadata
- set up tagged posts?
- how to do distributed development?
- so i can push changes from another fork into this one?
- why does this not just work with multiple remotes like github forks
Here's how to publish a new blog to the web in minutes:
- Clone into this repository
- Install lineman if you haven't yet.
- Run
npm install
to install required project dependencies. - Run
bower install
to install frontend dependencies. - Run
lineman run
while you work on writing markdown files underapp/posts
- Install heroku if you haven't, then run
heroku create --buildpack http://github.com/linemanjs/heroku-buildpack-lineman.git
- Commit your post and
git push heroku master
, and your blog is hosted on the web with apache2!
Turns out that lineman makes a great blogging engine!
Here's a screencast to demo usage for Test Double's blog, Double Takes.
First, consider reading about grunt-markdown-blog, our grunt task that's doing almost all the heavy lifting here.
- Just add markdown posts with an ".md" extension to
app/posts
and when youlineman run
orlineman build
, they'll be rendered. - Configure your blog in
config/application.coffee
- Customize your blog templates in
app/templates
. - RSS is generated for you at
/index.xml
- Disqus support is included if you configure it.
- You can, of course, add any Less/CSS or CoffeeScript/JavaScript as you can with any other Lineman application. See Lineman's documentation.
- For more info on publishing with heroku, see details about Heroku & Lineman.
- To build static assets to deploy some other way, just run
lineman build
and put thedist
directory's contents somewhere.