From 01616e64b2d8de8d05bbe8d05ca401c1a8a83dc3 Mon Sep 17 00:00:00 2001 From: Javier Rojas Date: Mon, 4 Oct 2010 14:20:09 -0400 Subject: [PATCH] Added Javier Rojas' linktoimgonly.pm plugin. From http://devnull.li/~jerojasro/files/linktoimgonly.pm --- IkiWiki/Plugin/linktoimgonly.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 IkiWiki/Plugin/linktoimgonly.pm diff --git a/IkiWiki/Plugin/linktoimgonly.pm b/IkiWiki/Plugin/linktoimgonly.pm new file mode 100644 index 000000000..02dcb4a68 --- /dev/null +++ b/IkiWiki/Plugin/linktoimgonly.pm @@ -0,0 +1,18 @@ +#!/usr/bin/perl + +package IkiWiki::Plugin::linktoimgonly; + +use warnings; +use strict; +use IkiWiki 3.00; + +sub import { + hook(type => "preprocess", id => "ltio", call => \&preprocess); +} + +sub preprocess { + my %params = @_; + return "" . $params{"text"} . ""; +} + +1 -- 2.26.2