Daniel Burrows wrote: > I don't know if this is ikiwiki's fault or the planet's fault. > > It's been pointed out to me that when I edit my blog posts, they > appear again on planet.debian.org as if they were new. The creation > date isn't changed: I use [[!meta date=...]] to set it manually, and I > can see on the page and in both the RSS and the Atom feeds that it's > correct. > > ikiwiki does include an <updated> tag in its Atom feed; I wonder if > that could be confusing the planet? Is there any way to disable > generation of this tag in the feed?
Based on the atom spec, I think ikiwiki is using atom:updated correctly, since it sets it to the mtime of the file. The relevant field that planet should be looking at if it wants a static publication date is atom:published. Ikiwiki sets that to the initial page creation date, and never changes it. Here is an example from my latest blog entry, which I posted and then edited. (But planet debian uses my rss feed, and seem to be happy with what ikiwiki does there.) <id>http://kodama.kitenet.net/~joey/blog/entry/fiber_installation/</id> <updated>2008-05-16T15:42:29Z</updated> <published>2008-05-16T15:13:16Z</published> I suspect that planet is doing the wrong thing.. Relevant spec: 4.2.15 The "atom:updated" Element The "atom:updated" element is a Date construct indicating the most recent instant in time when an entry or feed was modified in a way the publisher considers significant. Therefore, not all modifications necessarily result in a changed atom:updated value. atomUpdated = element atom:updated { atomDateConstruct} Publishers MAY change the value of this element over time. 4.2.9 The "atom:published" Element The "atom:published" element is a Date construct indicating an instant in time associated with an event early in the life cycle of the entry. atomPublished = element atom:published { atomDateConstruct} Typically, atom:published will be associated with the initial creation or first availability of the resource. 4.2.6.1 Comparing atom:id Instances of atom:id elements can be compared to determine whether an entry or feed is the same as one seen before. [...] -- see shy jo
signature.asc
Description: Digital signature