Skip to content

Commit

Permalink
Pages template
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip (flip) Kromer committed Aug 21, 2009
1 parent 90a5d9f commit c9e23c7
Show file tree
Hide file tree
Showing 13 changed files with 434 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .gitignore
@@ -0,0 +1,34 @@
\#*
.\#*
*~
.DS_Store
Icon?
REVISION
TAGS*
nohup.out
.bzr
.hg
.svn
/**/log/*
/**/cache/*
/**/db/*.sqlite3
tmp
*DONTVERSION*
config/*private*
a.out
*.sw?
*.o
*.so
*.stackdump
*.pyc
coverage
rdoc
pkg
.project
.pydevproject
.settings
.tasks-cache
*.tmproj

_drafts/
_site/
7 changes: 7 additions & 0 deletions README.textile
@@ -0,0 +1,7 @@
h1. This is a placeholder. Please help revive _why's projects by importing documentation.

This is a skeleton "Jekyll":http://github.com/mojombo/jekyll site. This is the best place to import old documentation from the github wikis and the code.whytheluckystiff.net/doc files.

h1. License

The skeleton here is borrowed from "Tom Preston-Werner":http://github.com/mojombo/jekyll under the MIT License.
7 changes: 7 additions & 0 deletions _config.yml
@@ -0,0 +1,7 @@
permalink: none
markdown: rdiscount
maruku:
use_tex: false
use_divs: false
png_dir: images/latex
png_url: /images/latex
52 changes: 52 additions & 0 deletions _layouts/default.html
@@ -0,0 +1,52 @@
<!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-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{{ page.title }}</title>
<meta name="author" content="USERNAME" />
<!-- <link href="http://feeds.feedburner.com/USERNAME-github-com-REPONAME" rel="alternate" title="USERNAME" type="application/atom+xml" /> -->
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/css/syntax.css" type="text/css" />
</head>
<body>

<div class="site">
<div class="title">
<a href="/">USERNAME</a>
&middot; <a class="extra" href="http://github.com/USERNAME/REPONAME">REPONAME</a>
</div>

{{ content }}

<div class="footer">
<div class="contact">
<p>
REPONAME<br />
</p>
</div>
<div class="contact">
<p>
<a href="http://github.com/USERNAME/">github.com/USERNAME</a><br />
</p>
</div>
<div class="rss">
<!-- <a href="http://feeds.feedburner.com/USERNAME-github-com-REPONAME"><img src="/images/rss.png" alt="Subscribe to RSS Feed" /></a> -->
</div>
</div>
</div>

<a href="http://github.com/USERNAME"><img style="position: absolute; top: 0; right: 0; border: 0;" src="/images/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>

<!-- <script type="text/javascript"> -->
<!-- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); -->
<!-- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); -->
<!-- </script> -->
<!-- <script type="text/javascript"> -->
<!-- var pageTracker = _gat._getTracker("UA-XXXXXXX-X"); -->
<!-- pageTracker._trackPageview(); -->
<!-- </script> -->

</body>
</html>
15 changes: 15 additions & 0 deletions _layouts/post.html
@@ -0,0 +1,15 @@
---
layout: default
---
<div id="post">
{{ content }}
</div>

<div id="related">
<h2>Related Posts</h2>
<ul class="posts">
{% for post in site.related_posts limit:3 %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
Empty file added _posts/.gitignore
Empty file.
27 changes: 27 additions & 0 deletions atom.xml
@@ -0,0 +1,27 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title>USERNAME.github.com/REPONAME</title>
<link href="http://USERNAME.github.com/REPONAME/atom.xml" rel="self"/>
<link href="http://USERNAME.github.com/REPONAME/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://USERNAME.github.com/</id>
<author>
<name>USERNAME.github.com</name>
<email>EMAIL</email>
</author>

{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://USERNAME.github.com/REPONAME/{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://USERNAME.github.com/REPONAME/{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}

</feed>
207 changes: 207 additions & 0 deletions css/screen.css
@@ -0,0 +1,207 @@
/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */

* {
margin: 0;
padding: 0;
}

html, body {
height: 100%;
}

body {
background-color: white;
font: 13.34px helvetica, arial, clean, sans-serif;
*font-size: small;
text-align: center;
}

h1, h2, h3, h4, h5, h6 { margin-top: 1em }

h1 { font-size: 150%; border: 1px solid #ddd ; border-width: 0 0 1px 0 ; padding: 0.5em 0 0.25em }
h2 { font-size: 125%; }
h3 { font-size: 110%; }
h4, h5, h6 {
font-size: 100%;
}

h1 {
margin-bottom: 1em;
}

p {
margin: 1em 0;
}

a {
color: #00a;
}

a:hover {
color: black;
}

a:visited {
color: #a0a;
}

table {
font-size: inherit;
font: 100%;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

ul {
margin-left: 1.25em ;
}

ul.posts {
list-style-type: none;
margin-bottom: 2em;
}

ul.posts li {
line-height: 1.75em;
}

ul.posts span {
color: #aaa;
font-family: Monaco, "Courier New", monospace;
font-size: 80%;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
font-size: 110%;
text-align: justify;
width: 40em;
margin: 3em auto 2em auto;
line-height: 1.5em;
}

.title {
color: #a00;
font-weight: bold;
margin-bottom: 2em;
}

.site .title a {
color: #a00;
text-decoration: none;
}

.site .title a:hover {
color: black;
}

.site .title a.extra {
color: #aaa;
text-decoration: none;
margin-left: 0.5em;
margin-right: 0.5em;
}

.site .title a.extra:hover {
color: black;
}

.site .meta {
color: #aaa;
}

.site .footer {
font-size: 80%;
color: #666;
border-top: 4px solid #eee;
margin-top: 2em;
overflow: hidden;
}

.site .footer .contact {
float: left;
margin-right: 3em;
}

.site .footer .contact a {
color: #8085C1;
}

.site .footer .rss {
margin-top: 1.1em;
margin-right: -.2em;
float: right;
}

.site .footer .rss img {
border: 0;
}

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

#post {

}

/* standard */

#post pre {
border: 1px solid #ddd;
background-color: #eef;
padding: 0 .4em;
}

#post ul,
#post ol {
margin-left: 1.25em;
}

#post code {
border: 1px solid #ddd;
background-color: #eef;
font-size: 95%;
padding: 0 .2em;
}

#post pre code {
border: none;
}

/* terminal */

#post pre.terminal {
border: 1px solid black;
background-color: #333;
color: white;
}

#post pre.terminal code {
background-color: #333;
}

#related {
margin-top: 2em;
}

#related h2 {
margin-bottom: 1em;
}

0 comments on commit c9e23c7

Please sign in to comment.