summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@pepperfish.net>2015-01-21 09:23:58 +0000
committerDaniel Silverstone <dsilvers@pepperfish.net>2015-01-21 09:23:58 +0000
commit87bbcf07ccbbe062406a1ab1562003e57cd886b9 (patch)
tree3478af2c0e946a0cd089f68b95f7467f4f985d27
downloadblog-87bbcf07ccbbe062406a1ab1562003e57cd886b9.tar.bz2
Template
-rw-r--r--archives.mdwn8
-rw-r--r--comments.mdwn10
-rw-r--r--index.mdwn11
-rw-r--r--posts.mdwn3
-rw-r--r--posts/first_post.mdwn2
-rw-r--r--posts/test.mdwn5
-rw-r--r--sidebar.mdwn10
-rw-r--r--tags.mdwn3
8 files changed, 52 insertions, 0 deletions
diff --git a/archives.mdwn b/archives.mdwn
new file mode 100644
index 0000000..d07b73b
--- /dev/null
+++ b/archives.mdwn
@@ -0,0 +1,8 @@
+[[!if test="archives/*" then="""
+Browse through blog archives by year:
+[[!map pages="./archives/* and !./archives/*/* and !*/Discussion"]]
+"""
+else="""
+You need to use the `ikiwiki-calendar` program to generate calendar-based
+archive pages.
+"""]]
diff --git a/comments.mdwn b/comments.mdwn
new file mode 100644
index 0000000..e22b50a
--- /dev/null
+++ b/comments.mdwn
@@ -0,0 +1,10 @@
+[[!sidebar content="""
+[[!inline pages="comment_pending(./posts/*)" feedfile=pendingmoderation
+description="comments pending moderation" show=-1]]
+Comments in the [[!commentmoderation desc="moderation queue"]]:
+[[!pagecount pages="comment_pending(./posts/*)"]]
+"""]]
+
+Recent comments on posts in the [[blog|index]]:
+[[!inline pages="./posts/*/Discussion or comment(./posts/*)"
+template="comment"]]
diff --git a/index.mdwn b/index.mdwn
new file mode 100644
index 0000000..7914cd2
--- /dev/null
+++ b/index.mdwn
@@ -0,0 +1,11 @@
+[[!if test="enabled(sidebar)" then="""
+[[!sidebar]]
+""" else="""
+[[!inline pages=sidebar raw=yes]]
+"""]]
+
+[[!inline pages="page(./posts/*) and !*/Discussion" show="10"
+actions=yes rootpage="posts"]]
+
+
+This blog is powered by [ikiwiki](http://ikiwiki.info).
diff --git a/posts.mdwn b/posts.mdwn
new file mode 100644
index 0000000..2bd0f1d
--- /dev/null
+++ b/posts.mdwn
@@ -0,0 +1,3 @@
+Here is a full list of posts to the [[blog|index]].
+
+[[!inline pages="page(./posts/*) and !*/Discussion" archive=yes feedshow=10 quick=yes trail=yes]]
diff --git a/posts/first_post.mdwn b/posts/first_post.mdwn
new file mode 100644
index 0000000..343497d
--- /dev/null
+++ b/posts/first_post.mdwn
@@ -0,0 +1,2 @@
+This is the first post to this example blog. To add new posts, just add
+files to the posts/ subdirectory, or use the web form.
diff --git a/posts/test.mdwn b/posts/test.mdwn
new file mode 100644
index 0000000..0dbe5a7
--- /dev/null
+++ b/posts/test.mdwn
@@ -0,0 +1,5 @@
+[[!meta title="Basic test posting"]]
+[[!meta author="Daniel Silverstone"]]
+[[!meta date="1980-04-09 12:00:00"]]
+
+Announcing the birth of a bouncing baby blog.
diff --git a/sidebar.mdwn b/sidebar.mdwn
new file mode 100644
index 0000000..e0895f6
--- /dev/null
+++ b/sidebar.mdwn
@@ -0,0 +1,10 @@
+[[!if test="enabled(calendar)" then="""
+[[!calendar pages="page(./posts/*) and !*/Discussion"]]
+"""]]
+
+[[Recent Comments|comments]]
+
+[[Archives]]
+
+[[Tags]]:
+[[!pagestats style="list" pages="./tags/*" among="./posts/*"]]
diff --git a/tags.mdwn b/tags.mdwn
new file mode 100644
index 0000000..b5eca5b
--- /dev/null
+++ b/tags.mdwn
@@ -0,0 +1,3 @@
+[[!pagestats pages="./tags/*" among="./posts/*"]]
+
+On the right you can see the tag cloud for this blog.