Turns out that lineman makes a great blogging engine!
Here's a screencast to demo usage for an older variant of Test Double's blog, Double Takes.
Here's how to publish a new blog to the web using github pages in minutes:
- Clone this repository with
npx degit linemanjs/lineman-blog-template - Install lineman if you haven't yet.
- Run
npm installto install required project dependencies. - Run
npm startwhile you work on writing markdown files underapp/posts. - Turn on github pages for your repo.
- Customize the
emailwithingh-pages-deploy.ymlto the one you use for your github account and put it inside a.github/workflowsfolder in your repo. - Commit your post and
git push main, and your blog will be hosted on github pages once the actions workflow completes!
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/postsand when younpm startornpm run 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.xmland a JSON Feed at/index.json(setmarkdown.options.feedCountto0to disable both of these features) - 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.
- To build static assets to deploy some other way, just run
npm run buildand put thedistdirectory's contents somewhere.