uriel
fc6a26ec08
Fix sitemap.tpl when $sitedir is an absolute path. Thanks again to arg for reporting, tracking, and fixing this bug!
2009-08-09 21:02:42 +02:00
uriel
677a928bc2
Add lastmod support to sitemap.xml
2009-08-08 05:32:42 +02:00
uriel
a188daebdc
Implement the sitemaps.org standard 'protocol' with sitemap.xml.
2009-07-29 01:41:18 +02:00
uriel
8cd04dd184
New context var 'local_file' that will point to the on-disk-file that represents the main content of a given page request (if such exists, otherwise it is '' or ()).
...
Move title extracting functions from sitemap.tpl to werclib.rc.
Rewrite .md title extraction code to only match first lines when 'underlines' with =.
Use the changes above to generate better page titles when possible.
2009-07-28 20:28:35 +02:00
uriel
1b56834736
Don't include domain in sitemap links, this avoid breaking when port is not 80.
2009-07-25 01:11:15 +00:00
uriel
328c6a394e
Properly handle dashes in paths the same way we treated underscores when generating page titles. This includes sitemaps, sidebar nav trees and the page title header itself.
2009-07-19 08:01:42 +02:00
uriel
5e2170a691
Move shared .tpl files to tpl/ from lib/, this fixes a DoS vulneravility where master_template.tpl could be accessed as a standalone .tpl file that recursively called itself.
2009-06-06 16:20:02 +02:00