mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Initial nanoc commit
This commit is contained in:
parent
34ced666b1
commit
6efd7b1ce6
10 changed files with 165 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
output/*
|
||||
output/*.html
|
||||
|
|
1
Rakefile
Normal file
1
Rakefile
Normal file
|
@ -0,0 +1 @@
|
|||
require 'nanoc3/tasks'
|
12
Rules
Normal file
12
Rules
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
compile '*' do
|
||||
filter :erb
|
||||
layout 'default'
|
||||
end
|
||||
|
||||
route '*' do
|
||||
item.identifier + 'index.html'
|
||||
end
|
||||
|
||||
layout '*', :erb
|
6
config.yaml
Normal file
6
config.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
output_dir: output
|
||||
data_sources:
|
||||
- items_root: /
|
||||
layouts_root: /
|
||||
type: filesystem_compact
|
12
content/index.html
Normal file
12
content/index.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<h1>A Brand New nanoc Site</h1>
|
||||
|
||||
<p>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).</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><p><strong>Change this page’s content</strong> 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).</p></li>
|
||||
<li><p><strong>Change the layout</strong>, which is the “default.txt” file in the “layouts/default” directory, and create something unique (and hopefully less bland).</p></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>
|
2
content/index.yaml
Normal file
2
content/index.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
title: Home
|
28
layouts/default.html
Normal file
28
layouts/default.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css" />
|
||||
<script src="script.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<%= yield %>
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
<h2>Documentation</h2>
|
||||
<ul>
|
||||
<li><a href="http://nanoc.stoneship.org/tutorial/">Tutorial</a></li>
|
||||
<li><a href="http://nanoc.stoneship.org/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://projects.stoneship.org/trac/nanoc/">Wiki</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
2
layouts/default.yaml
Normal file
2
layouts/default.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
--- {}
|
||||
|
2
lib/default.rb
Normal file
2
lib/default.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# All files in the 'lib' directory will be loaded
|
||||
# before nanoc starts compiling.
|
99
output/style.css
Normal file
99
output/style.css
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue