Commit Graph

15 Commits

Author SHA1 Message Date
uriel
e0f4f8b5f3 Don't execute perm_redirects directly from conf_perm_redirect to avoid tripping over sitemaps and other code that sources config files but doesn't want to actually *do* anything. Also hide paths with simple or pattern redirects from sitemaps. 2009-02-14 07:09:27 +00:00
uriel
3c664ef47e Use new conf_enable_... interfaces, this also alos us to make the default for $enabled_apps nil. 2009-02-08 00:23:33 +00:00
uriel
d1426d3ae7 Fix sitemap.txt generation. 2009-02-06 21:20:36 +00:00
uriel
965557e19b Convert fltr_cache into a function. Enable output buffering which had been commented out for unknwon reasons. 2009-02-06 22:09:32 +01:00
uriel
0507bfa482 Rewrite most sitemap generation code, much cleaner, modularize file title/desc extraction, take advantage of new fproc_cache to cache sitemap. 2009-02-06 20:43:11 +01:00
uriel
f5f19776df Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling. 2009-02-05 03:16:14 +00:00
uriel
619ab918ab Fix sitemap.tpl to use the new split dirfilter 2009-01-10 17:34:56 +01:00
uriel
08d6044274 Rename $baseuri to $base_url 2008-12-28 20:20:48 +01:00
uriel
850e3ec5b9 Sitemap improvemnts and cleanups:
- Avoid nedless tests
- Replace reference to /bin/sed with faster, simpler and probably more correct plan9 sed call.
- Move inline html styling to style.css
- Various code cleanups, bring source style in line with other werc source.
2008-12-20 13:20:31 +01:00
uriel
def444ac29 New menu implementation, removes the recursive calls to rc/awk, also makes use of dirfilter more consistent and simplifies some code.
Other minnor cleanups.
2008-10-27 00:41:23 +01:00
uriel
2cf3a1ef2f Update sitemap.tpl to use _werc/config instead of the deprecated _config, also don't include in sitemap sub-tress where permanentRedirect is set to make Google happy. 2008-10-24 04:19:29 +02:00
uriel
d5e8c705ed Add trailing / for directories in sitemap to make google crawler happy 2008-10-12 22:41:40 +00:00
uriel
20dbcf307e Use /tmp to store temporay sitemap.txt files 2008-09-26 14:48:31 +02:00
uriel
fa3df9d5ac Dynamically generate a sitemap.txt when the sitemap page is requested 2008-09-25 11:04:57 +02:00
uriel
346b758756 Reorganization of included and template files, made more consistent and logical. inc/ is now called lib/, and all non-staic files in pub/ have moved to lib/.
In site dirs _config and _default.tpl have moved to _werc/ in preparation for things like comments.
2008-09-24 20:21:32 +02:00