diff --git a/.gitignore b/.gitignore index 77320b3..e6aa7a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -output/* +output/*.html diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..f484d24 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require 'nanoc3/tasks' \ No newline at end of file diff --git a/Rules b/Rules new file mode 100644 index 0000000..35c17cb --- /dev/null +++ b/Rules @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby + +compile '*' do + filter :erb + layout 'default' +end + +route '*' do + item.identifier + 'index.html' +end + +layout '*', :erb diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..48588b2 --- /dev/null +++ b/config.yaml @@ -0,0 +1,6 @@ +--- +output_dir: output +data_sources: +- items_root: / + layouts_root: / + type: filesystem_compact diff --git a/content/index.html b/content/index.html new file mode 100644 index 0000000..3b42736 --- /dev/null +++ b/content/index.html @@ -0,0 +1,12 @@ +
You’ve just created a new nanoc site. The page you are looking at right now is the home page for your site (and it’s probably the only page).
+ +To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:
+ +Change this page’s content by editing “content.html” file in the “content” directory. This is the actual page content, and therefore doesn’t include the header, sidebar or style information (those are part of the layout).
Change the layout, which is the “default.txt” file in the “layouts/default” directory, and create something unique (and hopefully less bland).
If you need any help with customizing your nanoc web site, be sure to check out the documentation (see sidebar), and be sure to subscribe to the discussion group (also see sidebar). Enjoy!
diff --git a/content/index.yaml b/content/index.yaml new file mode 100644 index 0000000..cb60025 --- /dev/null +++ b/content/index.yaml @@ -0,0 +1,2 @@ +--- +title: Home diff --git a/layouts/default.html b/layouts/default.html new file mode 100644 index 0000000..d330d89 --- /dev/null +++ b/layouts/default.html @@ -0,0 +1,28 @@ + + + + +