Henshin sites all share the same underlying structure:
- index.html.slim
- feed.xml.slim
- config.yml
- init.rb
- assets/
- drafts/
- posts/
- templates/
From the top:
- index.html.slim
- This file will become
/index.html
. You don’t need this, but most of the
time you will want it.
- feed.xml.slim
- Again, this is not necessary, but for blogs will generate an rss feed.
- config.yml
- This file lets you configure your site and set variables which are then available
in all your templates. See the Configuration section for
details.
- init.rb
- Allows you to extend the internals of Henshin. See the
Advanced Hackery section for details.
- assets/scripts/
- Put Javascript and Coffeescript files in here. When the site is generated they
will be combined and minified into a single
scripts.js
file.
- assets/styles/
- Put Css, Sass, Scss and Less files in here. When the site is generated they will
be combined and minified into a single
styles.css
file.
- drafts/
- Contains draft posts. These will not be shown when building or publishing, but
are shown when previewing the site with
henshin view
.
- posts/
- Contains published posts. Learn more in the Files & Posts
section.
- templates/
- Contains templates. Any files which use a rendering engine will be run through
the appropriate template. Posts will by default use the
post
template, if
it exists; other files will try to use the default
template.