aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-11 12:40:15 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-11 12:40:15 -0400
commitb6eccfd3d38c95773bdfc8fdf1ecbc32094f353e (patch)
tree4009cad2c7aafbdf4c6f8dcfa495c7c50cc536d6 /doc
parenta25d8f992bc3e39cf39954475f31b83dabbf2374 (diff)
downloadikiwiki-b6eccfd3d38c95773bdfc8fdf1ecbc32094f353e.tar
ikiwiki-b6eccfd3d38c95773bdfc8fdf1ecbc32094f353e.tar.gz
Add a microblog template that is useful for inlining microblogging posts.
Diffstat (limited to 'doc')
-rw-r--r--doc/ikiwiki/directive/inline.mdwn3
-rw-r--r--doc/style.css6
-rw-r--r--doc/tips/add_chatterbox_to_blog.mdwn6
-rw-r--r--doc/wikitemplates.mdwn1
4 files changed, 9 insertions, 7 deletions
diff --git a/doc/ikiwiki/directive/inline.mdwn b/doc/ikiwiki/directive/inline.mdwn
index f69d55de3..8afd65a05 100644
--- a/doc/ikiwiki/directive/inline.mdwn
+++ b/doc/ikiwiki/directive/inline.mdwn
@@ -79,7 +79,8 @@ Here are some less often needed parameters:
page. By default the `inlinepage` template is used, while
the `archivepage` template is used for archives. Set this parameter to
use some other, custom template, such as the `titlepage` template that
- only shows post titles. Note that you should still set `archive=yes` if
+ only shows post titles or the `microblog` template, optimised for
+ microblogging. Note that you should still set `archive=yes` if
your custom template does not include the page content.
* `raw` - Rather than the default behavior of creating a blog,
if raw is set to "yes", the page will be included raw, without additional
diff --git a/doc/style.css b/doc/style.css
index 98a28f347..74d968ddf 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -373,11 +373,13 @@ span.color {
padding: 2px;
}
-.comment-header {
+.comment-header,
+.microblog-header {
font-style: italic;
margin-top: .3em;
}
-.comment .author {
+.comment .author,
+.microblog .author {
font-weight: bold;
}
.comment-subject {
diff --git a/doc/tips/add_chatterbox_to_blog.mdwn b/doc/tips/add_chatterbox_to_blog.mdwn
index ee5ead64b..3497da9ff 100644
--- a/doc/tips/add_chatterbox_to_blog.mdwn
+++ b/doc/tips/add_chatterbox_to_blog.mdwn
@@ -11,10 +11,8 @@ from there, like I have on [my blog](http://kitenet.net/~joey/blog/)
\[[!template id=note text="""
\[[!aggregate expirecount=5 name="dents" url="http://identi.ca/joeyh"
feedurl="http://identi.ca/api/statuses/user_timeline/joeyh.atom"]]
- \[[!inline pages="internal(dents/*)" archive=yes show=5 feeds=no]]
+ \[[!inline pages="internal(dents/*)" template=microblog
+ show=5 feeds=no]]
"""]]
-For a cleaner look without the post dates, add `template=titlepage`
-to the `inline` directive.
-
Note: Works best with ikiwiki 3.10 or better.
diff --git a/doc/wikitemplates.mdwn b/doc/wikitemplates.mdwn
index fc5893677..f365cd5aa 100644
--- a/doc/wikitemplates.mdwn
+++ b/doc/wikitemplates.mdwn
@@ -21,6 +21,7 @@ located in /usr/share/ikiwiki/templates by default.
* `inlinepage.tmpl` - Used for adding a page inline in a blog
page.
* `archivepage.tmpl` - Used for listing a page in a blog archive page.
+* `microblog.tmpl` - Used for showing a microblogging post inline.
* `blogpost.tmpl` - Used for a form to add a post to a blog (and a rss/atom links)
* `feedlink.tmpl` - Used to add rss/atom links if blogpost.tmpl is not used.
* `aggregatepost.tmpl` - Used by the [[plugins/aggregate]] plugin to create