summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-14 12:40:40 -0400
committerJoey Hess <joey@kitenet.net>2010-09-14 12:40:40 -0400
commit894d09ba9482dd53448986f487ca0f372083fee4 (patch)
treed4b32a6b0e13bfd1da15c88e55e1810254c5a5e7
parentd7cd669470a5c8a920032baac6665bfc8eb4bd5b (diff)
Set isPermaLink="no" for guids in rss feeds.
The rss spec says that unless the attribute is set, guid elements *are* permalinks. The problem with that is that if [[meta permalink=]] is used, as is done with aggregated posts, that goes into the link element, and apparently some rss readers prefer the not-really-permalink in the guid element when linking to the post. Without meta permalink, the link and guid elements have the same content, so it should be ok, in that case too for the guid to not be a permalink. (Checked and this does not flood aggregators.)
-rw-r--r--debian/changelog1
-rw-r--r--templates/rssitem.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 3428aa6d3..8b127b574 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ ikiwiki (3.20100832) UNRELEASED; urgency=low
information earlier than the delete hook.
* actiontabs: Improve tab padding.
* blueview: Fix display of links to translated pages in the page header.
+ * Set isPermaLink="no" for guids in rss feeds.
-- Joey Hess <joeyh@debian.org> Tue, 07 Sep 2010 12:08:05 -0400
diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl
index a64a4ebd7..272b340bb 100644
--- a/templates/rssitem.tmpl
+++ b/templates/rssitem.tmpl
@@ -8,7 +8,7 @@
<TMPL_IF GUID>
<guid isPermaLink="no"><TMPL_VAR GUID></guid>
<TMPL_ELSE>
- <guid><TMPL_VAR URL></guid>
+ <guid isPermaLink="no"><TMPL_VAR URL></guid>
</TMPL_IF>
<link><TMPL_VAR PERMALINK></link>
<TMPL_IF CATEGORIES>