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 @@ +

A Brand New nanoc Site

+ +

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:

+ + + +

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 @@ + + + + + + + + + +
+ <%= yield %> +
+ + + diff --git a/layouts/default.yaml b/layouts/default.yaml new file mode 100644 index 0000000..20670d5 --- /dev/null +++ b/layouts/default.yaml @@ -0,0 +1,2 @@ +--- {} + diff --git a/lib/default.rb b/lib/default.rb new file mode 100644 index 0000000..a4df0cc --- /dev/null +++ b/lib/default.rb @@ -0,0 +1,2 @@ +# All files in the 'lib' directory will be loaded +# before nanoc starts compiling. diff --git a/output/style.css b/output/style.css new file mode 100644 index 0000000..f955a9b --- /dev/null +++ b/output/style.css @@ -0,0 +1,99 @@ +* { + margin: 0; + padding: 0; + + font-family: Georgia, Palatino, Times, 'Times New Roman', sans-serif; +} + +body { + background: #fff; +} + +a { + text-decoration: none; +} + +a:link, +a:visited { + color: #f30; +} + +a:hover { + color: #f90; +} + +#main { + position: absolute; + + top: 40px; + left: 280px; + + width: 500px; +} + +#main h1 { + font-size: 40px; + font-weight: normal; + + line-height: 40px; + + letter-spacing: -1px; +} + +#main p { + margin: 20px 0; + + font-size: 15px; + + line-height: 20px; +} + +#main ul { + margin: 20px; +} + +#main li { + list-style-type: square; + + font-size: 15px; + + line-height: 20px; +} + +#sidebar { + position: absolute; + + top: 40px; + left: 20px; + width: 200px; + + padding: 20px 20px 0 0; + + border-right: 1px solid #ccc; + + text-align: right; +} + +#sidebar h2 { + text-transform: uppercase; + + font-size: 13px; + + color: #333; + + letter-spacing: 1px; + + line-height: 20px; +} + +#sidebar ul { + list-style-type: none; + + margin: 20px 0; +} + +#sidebar li { + font-size: 14px; + + line-height: 20px; +}