Hi Joey,
On Tue, 20 Nov 2007 12:54:38 +0100, Nis Martensen wrote:
> Subject: [PATCH] Add an option to move feedlinks to below the inlined content
>
> In case no postform is provided, "feedlinksbelow=yes" can be used to
> move the feedlinks down.
The same effect can already be achieved without the patch: Just use the
same inline twice, once with feeds="no" and once with feedonly="yes".
However, this will change the feedlink URIs, because page_numfeeds is
incremented even when no feeds are actually being generated. The
following change avoids this.
>From bbef0f5647944c5d062099de0c5ba11177ff6ecd Mon Sep 17 00:00:00 2001
From: Nis Martensen <[EMAIL PROTECTED]>
Date: Thu, 6 Dec 2007 13:06:21 +0100
Subject: [PATCH] Set page_numfeeds only if feeds are being generated
---
IkiWiki/Plugin/inline.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index ebeb231..3a03b55 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -165,7 +165,9 @@ sub preprocess_inline (@) { #{{{
}
else {
$feednum=$knownfeeds{$feedid}="";
- $page_numfeeds{$params{destpage}}=1;
+ if ($feeds) {
+ $page_numfeeds{$params{destpage}}=1;
+ }
}
}
--
1.5.3.5.726.g41a7a
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]