ikiwiki/doc/tips/add_chatterbox_to_blog.mdwn

27 lines
1.0 KiB
Plaintext
Raw Normal View History

[[!meta date="2009-04-10 17:47:39 -0400"]]
2009-04-10 23:47:39 +02:00
If you use twitter or identi.ca, here's how to make a box
on the side of your blog that holds your recent status updates
from there, like I have on [my blog](http://kitenet.net/~joey/blog/)
--[[Joey]]
* Enable the [[plugins/aggregate]] plugin, and set up a cron
job for it.
* At the top of your blog's page, add something like the following.
2009-04-19 21:19:43 +02:00
You'll want to change the urls of course. Be sure to also change
the inline directive's [[PageSpec]] to link to the location the
feed is aggregated to, which will be a subpage of the page
you put this on (blog in this example):
2009-04-10 23:47:39 +02:00
2009-04-10 23:55:33 +02:00
\[[!template id=note text="""
\[[!aggregate expirecount=5 name="dents" url="http://identi.ca/joeyh"
feedurl="http://identi.ca/api/statuses/user_timeline/joeyh.atom"]]
2009-04-19 21:19:43 +02:00
\[[!inline pages="internal(./blog/dents/*)" template=microblog
show=5 feeds=no]]
2009-04-10 23:47:39 +02:00
"""]]
2009-04-10 23:54:50 +02:00
2010-01-29 22:05:45 +01:00
* To filter out `@-replies`, append "and !*@*" to the [[ikiwiki/PageSpec]].
The same technique can be used for other filtering.
2009-04-11 00:02:52 +02:00
Note: Works best with ikiwiki 3.10 or better.