This is a log of new features of note in DWiki.
New: Previous and Next links in pages in blog views
The more I have used DWiki for a blog, the more I've realized that I want individual entries to be able to have Previous (entry) and Next (entry) links. At first I resisted because this would require an expensive filesystem walk on even individual page views, but I have now given in and made the
blog::prevnext
renderer, which will do this if I want.
blog::prevnext
generates links directly to the pages, not to/range/N-N/
virtual directories, because I think that works better. (It would be less code the other way, but better links are worth the code.)
New: DWiki can generate Google Sitemaps
I added the ability for DWiki to generate Google Sitemap format XML files, using the view 'sitemap'. The information included is very basic currently: just the URL for each file page, all of them set to priority 0.8 (in the hopes that Google will decide that all of the directories are priority 0.5 and prefer returning file page results).
Google does not say what Content-Type you should return sitemaps in, so I have opted for 'application/xml'.
In the future, something as elaborate as Atom rendering may be done. For now, everything is hardcoded in the
sitemap::minurlset
renderer.Updated: now directories are shown too, at priority 0.6. This feature is clearly going to be in flux for a while.