From: W. Trevor King Date: Wed, 13 Oct 2010 19:38:07 +0000 (-0400) Subject: Add gitrepo post announcing the gitrepo template. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0633295ddface72beb9bba5a4432830bd7a167df;p=blog.git Add gitrepo post announcing the gitrepo template. --- diff --git a/posts/gitrepo.mdwn b/posts/gitrepo.mdwn new file mode 100644 index 0000000..686e73b --- /dev/null +++ b/posts/gitrepo.mdwn @@ -0,0 +1,20 @@ +I've added a [[templates/gitrepo]] template to make it easy to link to +my [[Git]] projects with [[rel-vcs]] links. It's based on ikiwiki's +[gitbranch][] template. + +It was a bit annoying to get the template into renderable Markdown +because the `` tags are not explanded when the gitrepo page +is being rendered in its own right. The solution was to use the +[htmlscrubber][] plugin with + + htmlscrubber_skip => "!templates/*", + +and to also exclude the unscrubbed page from the [[tags/git]] tag +inlines. I can't use the htmlscrubber plugin everywhere because it +scrubs out my [[MathML]] (see [[mdwn_itex]]). + +[gitbranch]: http://ikiwiki.info/templates/gitbranch/ +[htmlscrubber]: http://ikiwiki.info/plugins/htmlscrubber/ + +[[!tag tags/blogging]] +[[!tag tags/git]]