summaryrefslogtreecommitdiff
path: root/examples/tagblog/templates
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-08 12:41:58 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-08 12:41:58 +0100
commit699bd0011e9771cd5c03c65aec0ec79656c475a1 (patch)
tree8b2840edb78336d0de293744bc79bb96a14be29b /examples/tagblog/templates
parentb403d35b087683a7a38e57b943c63449613b3115 (diff)
downloadhakyll-699bd0011e9771cd5c03c65aec0ec79656c475a1.tar.gz
Added tagblog example (tutorial coming up).
Diffstat (limited to 'examples/tagblog/templates')
-rw-r--r--examples/tagblog/templates/default.html22
-rw-r--r--examples/tagblog/templates/post.html5
-rw-r--r--examples/tagblog/templates/postitem.html4
-rw-r--r--examples/tagblog/templates/rss.xml9
-rw-r--r--examples/tagblog/templates/rssitem.xml5
5 files changed, 45 insertions, 0 deletions
diff --git a/examples/tagblog/templates/default.html b/examples/tagblog/templates/default.html
new file mode 100644
index 0000000..21429fa
--- /dev/null
+++ b/examples/tagblog/templates/default.html
@@ -0,0 +1,22 @@
+<?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>
+ <title>SimpleBlog - $title</title>
+ <link rel="stylesheet" type="text/css" href="/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="/index.html">Home</a>
+ <a href="/posts.html">All posts</a>
+ </div>
+
+ $body
+ </body>
+</html>
diff --git a/examples/tagblog/templates/post.html b/examples/tagblog/templates/post.html
new file mode 100644
index 0000000..8ecb87d
--- /dev/null
+++ b/examples/tagblog/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/tagblog/templates/postitem.html b/examples/tagblog/templates/postitem.html
new file mode 100644
index 0000000..a14687b
--- /dev/null
+++ b/examples/tagblog/templates/postitem.html
@@ -0,0 +1,4 @@
+<li>
+ <a href="/$url">$title</a>
+ - <em>$date</em> - by <em>$author</em>
+</li>
diff --git a/examples/tagblog/templates/rss.xml b/examples/tagblog/templates/rss.xml
new file mode 100644
index 0000000..be918af
--- /dev/null
+++ b/examples/tagblog/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/tagblog/templates/rssitem.xml b/examples/tagblog/templates/rssitem.xml
new file mode 100644
index 0000000..48573d2
--- /dev/null
+++ b/examples/tagblog/templates/rssitem.xml
@@ -0,0 +1,5 @@
+<item>
+ <title>$title</title>
+ <link>http://example.com/$url</link>
+ <description>$title by $author</description>
+</item>