diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-09-17 16:31:21 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-09-17 16:31:21 +0200 |
commit | 8d669d2263bdcfb870a0f734de9fe7c76e2ec266 (patch) | |
tree | f3b88744cde2aaf17c3a04decbc990d296c02dc1 /template | |
download | trivium-8d669d2263bdcfb870a0f734de9fe7c76e2ec266.tar.gz trivium-8d669d2263bdcfb870a0f734de9fe7c76e2ec266.tar.xz trivium-8d669d2263bdcfb870a0f734de9fe7c76e2ec266.zip |
Initial import of Trivium
Diffstat (limited to 'template')
-rw-r--r-- | template/all.ht | 37 | ||||
-rw-r--r-- | template/atom.ht | 39 | ||||
-rw-r--r-- | template/front.ht | 49 | ||||
-rw-r--r-- | template/monthly.ht | 63 | ||||
-rw-r--r-- | template/single.ht | 51 |
5 files changed, 239 insertions, 0 deletions
diff --git a/template/all.ht b/template/all.ht new file mode 100644 index 0000000..39d91cb --- /dev/null +++ b/template/all.ht @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>Trivium: grammar, logic, rhetoric</title> + <link rel="stylesheet" href="style.css"> + </head> + <body> + +<div class="main"> +<div class="wrapper"> +<h1><span class="title"> +<a href="./">Trivium: grammar, logic, rhetoric</a></span> +<span class="author">by +<a href="http://chneukirchen.org/">Christian Neukirchen</a></span></h1> + +$ self[:entries].each { |entry| + +<h2> +$# class="entry-title"> + <a href="${entry[:id]}" rel="bookmark"> + <abbr class="published" title="${entry[:date].iso8601}"> + ${entry[:title]} + </abbr> + </a> +</h2> + +$ } + +<address class="author vcard"> +Copyright © 2008 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a> +</address> + +</div> +</div> +</body> +</html> diff --git a/template/atom.ht b/template/atom.ht new file mode 100644 index 0000000..f7d262d --- /dev/null +++ b/template/atom.ht @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title type="text">Trivium: grammar, logic, rhetoric</title> + <link rel="alternate" type="text/html" + href="http://chneukirchen.org/trivium/" /> + <link rel="self" href="http://chneukirchen.org/trivium/index.atom" /> + <author> + <name>Christian Neukirchen</name> + <uri>http://chneukirchen.org/</uri> + <email>chneukirchen@gmail.com</email> + </author> + <id>tag:chneukirchen.org,2008:trivium-feed</id> + <generator version="0.1">trivium.rb</generator> + <rights type="xhtml"> + <div xmlns="http://www.w3.org/1999/xhtml"> + Copyright © 2008 Christian Neukirchen, chneukirchen@gmail.com +Verbatim copying is permitted as long as this message is preserved. + </div> + </rights> + <updated>${self[:time].iso8601}</updated> +$ self[:entries].each { |entry| + <entry> + <title>${entry[:title]}</title> + <author> + <name>Christian Neukirchen</name> + <uri>http://chneukirchen.org/</uri> + <email>chneukirchen@gmail.com</email> + </author> + <link rel="alternate" type="text/html" + href="http://chneukirchen.org/trivium/${entry[:id]}" /> + <id>tag:chneukirchen.org,2008:trivium-${entry[:id]}</id> + <updated>${entry[:date].iso8601}</updated> + <published>${self[:time].iso8601}</published> + <content type="html"> +${format(entry)} + </content> + </entry> +$ } +</feed> diff --git a/template/front.ht b/template/front.ht new file mode 100644 index 0000000..45e2fc1 --- /dev/null +++ b/template/front.ht @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>Trivium</title> + <link rel="stylesheet" href="style.css"> + <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom"> + </head> + <body> + +<div class="hfeed"> +<h1><a href="./"><img src="trivium.png" alt="Trivium"></a></h1> + +<small class="top nav"> + $ if self[:entries].last[:prev_by_month] +<a class="prev" href="${self[:entries].last[:prev_by_month]}">« Previously</a> +$ end +</small> + +$ self[:entries].each { |entry| + +<div class="hentry"> +<h2 class="entry-title"> + <a href="${entry[:id]}" rel="bookmark"> + <abbr class="published" title="${entry[:date].iso8601}"> + ${entry[:title]} + </abbr> + </a> +</h2> +<div class="entry-content"> +$:{format entry} +</div> +</div> + +$ } + +<small class="bot nav"> + $ if self[:entries].last[:prev_by_month] +<a class="prev" href="${self[:entries].last[:prev_by_month]}">« Previously</a> +$ end +</small> + +<address class="author vcard"> +Copyright © 2008 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a> +</address> + +</div> +</body> +</html> diff --git a/template/monthly.ht b/template/monthly.ht new file mode 100644 index 0000000..e852b5f --- /dev/null +++ b/template/monthly.ht @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>Trivium: ${self[:month]}</title> +$ if self[:entries].first[:prev_by_month] + <link rel="prev" href="${self[:entries].first[:prev_by_month]}"> +$ end +$ if self[:entries].first[:next_by_month] + <link rel="next" href="${self[:entries].first[:next_by_month]}"> +$ end + <link rel="stylesheet" href="style.css"> + <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom"> + </head> + <body> + +<div class="hfeed"> +<h1><a href="./"><img src="trivium.png" alt="Trivium"></a></h1> + +<small class="top nav"> +$ if self[:entries].first[:prev_by_month] +<a class="prev" href="${self[:entries].first[:prev_by_month]}">« ${Time.parse(self[:entries].first[:prev_by_month]).strftime("%B %Y")}</a> +$ end + +$ if self[:entries].first[:next_by_month] +<a class="next" href="${self[:entries].first[:next_by_month]}">${Time.parse(self[:entries].first[:next_by_month]).strftime("%B %Y")} »</a> +$ end +</small> + +$ self[:entries].each { |entry| +<div class="hentry"> +<h2 class="entry-title"> + <a href="${entry[:id]}" rel="bookmark"> + <abbr class="published" title="${entry[:date].iso8601}"> + ${entry[:title]} + </abbr> + </a> +</h2> + +<div class="entry-content"> +$:{format entry} +</div> +</div> +$ } + +<small class="bot nav"> +$ if self[:entries].first[:prev_by_month] +<a class="prev" href="${self[:entries].first[:prev_by_month]}">« ${Time.parse(self[:entries].first[:prev_by_month]).strftime("%B %Y")}</a> +$ end + +$ if self[:entries].first[:next_by_month] +<a class="next" href="${self[:entries].first[:next_by_month]}">${Time.parse(self[:entries].first[:next_by_month]).strftime("%B %Y")} »</a> +$ end +</small> + +<address class="author vcard"> +Copyright © 2008 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a> +</address> + +</div> +</body> +</html> + diff --git a/template/single.ht b/template/single.ht new file mode 100644 index 0000000..3c21fa0 --- /dev/null +++ b/template/single.ht @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>Trivium: ${self[:title]}</title> +$ if self[:prev_by_date] + <link rel="prev" href="${self[:prev_by_date]}"> +$ end +$ if self[:next_by_date] + <link rel="next" href="${self[:next_by_date]}"> +$ end + <link rel="stylesheet" href="style.css"> + <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom"> + </head> + <body> + +<div class="hfeed"> +<h1><a href="./"><img src="trivium.png" alt="Trivium"></a></h1> + +<small class="top nav"> +$ if l=Entry[self[:prev_by_date]] +<a class="prev" href="${l[:id]}">« ${l[:title]}</a> +$ end + +$ if l=Entry[self[:next_by_date]] +<a class="next" href="${l[:id]}">${l[:title]} »</a> +$ end +</small> + +<div class="hentry"> +<h2 class="entry-title"> + <a href="${self[:id]}" rel="bookmark"> + <abbr class="published" title="${self[:date].iso8601}"> + ${self[:title]} + </abbr> + </a> +</h2> + +<div class="entry-content"> +$:{format self} +</div> +</div> + +<address class="author vcard"> +Copyright © 2008 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a> +</address> + +</div> +</body> +</html> + |