summaryrefslogtreecommitdiff
path: root/examples/categoryblog/templates
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-29 15:16:08 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-29 15:16:08 +0100
commit4f335aa6a2ffcd663c4bdb2c139bf4e1ea5237bf (patch)
tree2a20cb81317ca50d2666684ed50b5047b568f467 /examples/categoryblog/templates
parent8ff702589fb5a1a2e600b204970084466de58a09 (diff)
downloadhakyll-4f335aa6a2ffcd663c4bdb2c139bf4e1ea5237bf.tar.gz
Added categoryblog example.
Diffstat (limited to 'examples/categoryblog/templates')
-rw-r--r--examples/categoryblog/templates/default.html23
-rw-r--r--examples/categoryblog/templates/post.html5
-rw-r--r--examples/categoryblog/templates/postitem.html4
-rw-r--r--examples/categoryblog/templates/rss.xml9
-rw-r--r--examples/categoryblog/templates/rssitem.xml5
5 files changed, 46 insertions, 0 deletions
diff --git a/examples/categoryblog/templates/default.html b/examples/categoryblog/templates/default.html
new file mode 100644
index 0000000..049a37a
--- /dev/null
+++ b/examples/categoryblog/templates/default.html
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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>SimpleBlog - $title</title>
+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
+ <link rel="alternate"
+ type="application/rss+xml"
+ title="SimpleBlog"
+ href="http://example.com/rss.xml" />
+ </head>
+ <body>
+ <h1>SimpleBlog - $title</h1>
+ <div id="navigation">
+ <a href="$root/index.html">Home</a>
+ <a href="$root/posts.html">All posts</a>
+ </div>
+
+ $body
+ </body>
+</html>
diff --git a/examples/categoryblog/templates/post.html b/examples/categoryblog/templates/post.html
new file mode 100644
index 0000000..8ecb87d
--- /dev/null
+++ b/examples/categoryblog/templates/post.html
@@ -0,0 +1,5 @@
+<h1>$title</h1>
+by <em>$author</em> on <strong>$date</strong>
+<div>Tagged as: $tags.</div>
+
+$body
diff --git a/examples/categoryblog/templates/postitem.html b/examples/categoryblog/templates/postitem.html
new file mode 100644
index 0000000..0e62418
--- /dev/null
+++ b/examples/categoryblog/templates/postitem.html
@@ -0,0 +1,4 @@
+<li>
+ <a href="$root/$url">$title</a>
+ - <em>$date</em> - by <em>$author</em>
+</li>
diff --git a/examples/categoryblog/templates/rss.xml b/examples/categoryblog/templates/rss.xml
new file mode 100644
index 0000000..be918af
--- /dev/null
+++ b/examples/categoryblog/templates/rss.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" ?>
+<rss version="2.0">
+ <channel>
+ <title>The SimpleBlog</title>
+ <link>http://example.com</link>
+ <description>Simple blog in hakyll</description>
+ $items
+ </channel>
+</rss>
diff --git a/examples/categoryblog/templates/rssitem.xml b/examples/categoryblog/templates/rssitem.xml
new file mode 100644
index 0000000..48573d2
--- /dev/null
+++ b/examples/categoryblog/templates/rssitem.xml
@@ -0,0 +1,5 @@
+<item>
+ <title>$title</title>
+ <link>http://example.com/$url</link>
+ <description>$title by $author</description>
+</item>