X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=doc%2Ftodo%2FGoogle_Sitemap_protocol.mdwn;h=ea8ee7f031eb5cc9f9aa8cb1e13c04b7a98f1af6;hb=e32bce464305fd8314d8324169a2079516548faf;hp=727f11b00bae75e21390447103883aeaf8d784ba;hpb=cd50e6d1dcbd9d7d92bf248131ce6bcce27a1cba;p=ikiwiki.git diff --git a/doc/todo/Google_Sitemap_protocol.mdwn b/doc/todo/Google_Sitemap_protocol.mdwn index 727f11b00..ea8ee7f03 100644 --- a/doc/todo/Google_Sitemap_protocol.mdwn +++ b/doc/todo/Google_Sitemap_protocol.mdwn @@ -26,4 +26,35 @@ for an example. You will probably need to strip out the metadata variables I > gather, and tweak to generate proper priorities. The code is pretty simple > though and self-explanatory. > -> -- CharlesMauch \ No newline at end of file +> -- CharlesMauch + +>> presumably you really mean [xtermin.us rather than localhost](http://xtermin.us/git/?p=website.git;a=blob;f=plugins/googlesitemap.pm) +>> -- [[KarlMW]] + +>>>[xtermin.us rather than localhost](http://xtermin.us/git/?p=website.git;a=blob;f=plugins/googlesitemap.pm) is 404 now. +>>> -- weakish + + +Although it is not able to read the meta-data from files, using google-sitemapgen [works well for me](http://bzed.de/posts/2010/06/creating_a_google_sitemap_for_ikiwiki/) to create a sitemap for my ikiwiki installation. -- [[bzed|BerndZeimetz]] + +There is a [sitemap XML standard](http://www.sitemaps.org/protocol.php) that ikiwiki needs to generate for. + +# Google Webmaster tools and RSS + +On [Google Webmaster tools](https://www.google.com/webmasters/tools) you can substitute an RSS feed as a sitemap. Do not use Atom as if you have malformed XHTML it will fail to parse and you will get a ERROR message like so: + + We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. + +[Google should grok feeds as sitemaps.](http://www.google.com/support/webmasters/bin/answer.py?answer=34654) Or rather [[plugins/inline]] should be improved to support the [sitemap protocol](http://sitemaps.org/protocol.php) natively. + +-- [[Hendry]] + + +Took me a minute to figure this out so I figured I'd share the steps I took: + +* Added rss=>1 and allowrss=>1 to my setup file +* Created a new page where the RSS would be created with this content, replacing "first_page" with the page in my wiki with the earliest date: + +
+\[[!inline  pages="* and !*/Discussion and created_after(first_page)" archive="yes" rss="yes" ]]
+