summaryrefslogtreecommitdiff
path: root/examples/tagblog/templates
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tagblog/templates')
-rw-r--r--examples/tagblog/templates/default.html14
-rw-r--r--examples/tagblog/templates/index.html19
-rw-r--r--examples/tagblog/templates/post.html8
-rw-r--r--examples/tagblog/templates/postitem.html4
-rw-r--r--examples/tagblog/templates/posts.html4
5 files changed, 36 insertions, 13 deletions
diff --git a/examples/tagblog/templates/default.html b/examples/tagblog/templates/default.html
index 049a37a..0537065 100644
--- a/examples/tagblog/templates/default.html
+++ b/examples/tagblog/templates/default.html
@@ -4,20 +4,20 @@
<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" />
+ <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" />
+ href="/rss.xml" />
</head>
<body>
- <h1>SimpleBlog - $title</h1>
+ <h1>SimpleBlog - $title$</h1>
<div id="navigation">
- <a href="$root/index.html">Home</a>
- <a href="$root/posts.html">All posts</a>
+ <a href="/">Home</a>
+ <a href="/posts.html">All posts</a>
</div>
- $body
+ $body$
</body>
</html>
diff --git a/examples/tagblog/templates/index.html b/examples/tagblog/templates/index.html
new file mode 100644
index 0000000..7152d02
--- /dev/null
+++ b/examples/tagblog/templates/index.html
@@ -0,0 +1,19 @@
+<div id="posts">
+ <h1>Recent posts</h1>
+ <ul>
+ $posts$
+ </ul>
+ <p><a href="/posts.html">All posts&hellip;</a></p>
+
+ <h1>Tags</h1>
+ <div>
+ $tagcloud$
+ </div>
+</div>
+
+<div class="about">
+ <h1>About</h1>
+ <p>
+ This is a sample blog for educational purposes.
+ </p>
+</div>
diff --git a/examples/tagblog/templates/post.html b/examples/tagblog/templates/post.html
index 8ecb87d..3c47f1b 100644
--- a/examples/tagblog/templates/post.html
+++ b/examples/tagblog/templates/post.html
@@ -1,5 +1,5 @@
-<h1>$title</h1>
-by <em>$author</em> on <strong>$date</strong>
-<div>Tagged as: $tags.</div>
+<h1>$title$</h1>
+by <em>$author$</em> on <strong>$date$</strong>
+<div>Tagged as: $prettytags$.</div>
-$body
+$body$
diff --git a/examples/tagblog/templates/postitem.html b/examples/tagblog/templates/postitem.html
index 0e62418..ccbb58e 100644
--- a/examples/tagblog/templates/postitem.html
+++ b/examples/tagblog/templates/postitem.html
@@ -1,4 +1,4 @@
<li>
- <a href="$root/$url">$title</a>
- - <em>$date</em> - by <em>$author</em>
+ <a href="$url$">$title$</a>
+ - <em>$date$</em> - by <em>$author$</em>
</li>
diff --git a/examples/tagblog/templates/posts.html b/examples/tagblog/templates/posts.html
new file mode 100644
index 0000000..758c670
--- /dev/null
+++ b/examples/tagblog/templates/posts.html
@@ -0,0 +1,4 @@
+<h1>$title$</h1>
+<ul>
+ $posts$
+</ul>