Skip to content

Directory Structure

liquidz edited this page Apr 11, 2012 · 11 revisions

Default structure

root/
  |
  +- _template/
  |   |
  |   +- _posts/
  |   |   |
  |   |   +-  YYYY-MM-DD-posttitle.html.clj
  |   |
  |   +- _layouts/
  |   |   |
  |   |   +- default.clj
  |   |
  |   +- index.html.clj
  |
  +- css/
  |
  +- js/
  |
  +- _config.clj

root/

All public static files such as JavaScripts and StyleSheets are here. And compiled templates are also putted here.

_template/

Template root directory.

_template/_posts/

Blog post data directory. All post files must be named YYYY-MM-DD-posttitle.html.clj as same as Jekyll filename format.

_template/_layouts/

All layout files are here.

_template/index.html.clj

Template file. When misaki compile templates, .clj extension is removed.

To edit templates, See Edit Template.

index.html.clj => COMPILE => index.html

_config.clj

Configuration file for misaki.

{
 ;; directory setting
 :public-dir   "./"
 :tag-out-dir  "tag/"
 :template-dir "_template/"
 :post-dir     "_posts/"
 :layout-dir   "_layouts/"

 ;; default site data
 :site {:site-title "misaki"}

 ;; site language
 :lang "en"

 ;; post file compile hook
 :compile-with-post ["index.html.clj"]

 ;; layout name for tag page
 :tag-layout "tag"

 ;; highlight setting
 :code-highlight {:CLJ "lang-clj"}
 }

You don't need to change directory setting basically. See Highlight Setting about code highlight setting.


Back to Home

Something went wrong with that request. Please try again.