all repos — h3rald @ bdc5538e007cdcac1df6fea4f967c634728e64b7

The sources of https://h3rald.com

Created nanoc structure.
h3rald h3rald@h3rald.com
Tue, 04 Aug 2009 15:26:47 +0200
commit

bdc5538e007cdcac1df6fea4f967c634728e64b7

parent

99dbffd2c4273e1b1970b5a4376413faacf85f56

A Rakefile

@@ -0,0 +1,5 @@

+Dir['tasks/**/*.rake'].sort.each { |rakefile| load rakefile } + +task :default do + puts 'This is an example rake task.' +end
A asset_defaults.yaml

@@ -0,0 +1,6 @@

+# Built-in +extension: dat +binary: true +filters: [] + +# Custom
A config.yaml

@@ -0,0 +1,3 @@

+output_dir: "output" +data_source: "filesystem_combined" +router: "default"
A content/home.html

@@ -0,0 +1,14 @@

+----- +# Built-in + +# Custom +title: Home +----- +<h1>Home</h1> +<p>You&#8217;ve just created a new nanoc site. The page you are looking at right now is the home page for your site (and it&#8217;s probably the only page).</p> +<p>To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:</p> +<ul> + <li><strong>Change this page&#8217;s content</strong> by editing &#8220;content.txt&#8221; file in the &#8220;content&#8221; directory. This is the actual page content, and therefore doesn&#8217;t include the header, sidebar or style information (those are part of the layout).</li> + <li><strong>Change the layout</strong>, which is the &#8220;default.txt&#8221; file in the &#8220;layouts/default&#8221; directory, and create something unique (and hopefully less bland).</li> +</ul> +<p>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!</p>
A layouts/default.html

@@ -0,0 +1,135 @@

+----- +# Built-in + +# Custom +filter: erb +----- +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> + <head> + <title>A Brand New nanoc Site - <%= @page.title %></title> + <style type="text/css" media="screen"> + * { + 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: 20px; + left: 280px; + + width: 500px; + } + + #main h1 { + font-size: 40px; + font-weight: normal; + + line-height: 40px; + + padding: 20px 0 20px 0; + + letter-spacing: -1px; + } + + #main p { + margin: 0 0 20px 0; + + font-size: 15px; + + line-height: 20px; + } + + #main ul { + padding: 0 0 0 20px; + } + + #main li { + margin: 0 0 20px 0; + + 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; + } + </style> + </head> + <body> + <div id="main"> +<%= @page_rep.content %> + </div> + <div id="sidebar"> + <h2>Documentation</h2> + <ul> + <li><a href="http://nanoc.stoneship.org/help/tutorial/">Tutorial</a></li> + <li><a href="http://nanoc.stoneship.org/help/manual/">Manual</a></li> + </ul> + <h2>Community</h2> + <ul> + <li><a href="http://groups.google.com/group/nanoc/">Discussion Group</a></li> + <li><a href="http://groups.google.com/group/nanoc-es/">Spanish Discussion Group</a></li> + <li><a href="http://nanoc.stoneship.org/trac/">Wiki</a></li> + </ul> + </div> + </body> +</html>
A lib/default.rb

@@ -0,0 +1,2 @@

+# All files in the 'lib' directory will be loaded +# before nanoc starts compiling.
A page_defaults.yaml

@@ -0,0 +1,10 @@

+# Built-in +layout: default +extension: html +filters_pre: [] +skip_output: false +filters_post: [] +custom_path: +filename: index + +# Custom
A tasks/default.rake

@@ -0,0 +1,3 @@

+task :example do + puts 'This is an example rake task in tasks/default.rake.' +end
A templates/default.html

@@ -0,0 +1,7 @@

+----- +# Built-in + +# Custom +title: A New Page +----- +Hi, I'm a new page!