Uriel
2fa68d1133
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
92a6125952
Add lastmod support to sitemap.xml
2009-08-08 05:32:42 +02:00
Uriel
c31d3e77ca
Implement the sitemaps.org standard 'protocol' with sitemap.xml.
2009-07-29 01:41:18 +02:00
Uriel
2d8ce10389
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
068ccb8c7f
Don't include domain in sitemap links, this avoid breaking when port is not 80.
2009-07-25 01:11:15 +00:00
Uriel
01876141f3
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
e91609e301
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