diff options
| author | czaks <marcin@6irc.net> | 2015-04-03 05:57:39 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-03 05:57:39 +0200 |
| commit | e2731113404bda42ee506e29b6927165b7576f61 (patch) | |
| tree | 112563313aae51cf2708e0449eac7868869d37bc /smart_build.php | |
| parent | 61d2729a40e8249fef8b3c0c584a9b5f7ae0777c (diff) | |
sitemap theme for smart_build
Diffstat (limited to 'smart_build.php')
| -rw-r--r-- | smart_build.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smart_build.php b/smart_build.php index fb467233..43734e4f 100644 --- a/smart_build.php +++ b/smart_build.php @@ -105,6 +105,11 @@ function sb_recent() { return true; } +function sb_sitemap() { + rebuildTheme("sitemap", "all"); + return true; +} + $entrypoints = array(); $entrypoints['/%b/'] = 'sb_board'; @@ -130,6 +135,7 @@ $entrypoints['/*/'] = 'sb_ukko'; $entrypoints['/*/index.html'] = 'sb_ukko'; $entrypoints['/recent.html'] = 'sb_recent'; $entrypoints['/%b/catalog.html'] = 'sb_catalog'; +$entrypoints['/sitemap.xml'] = 'sb_sitemap'; $reached = false; @@ -185,6 +191,9 @@ if ($reached) { elseif (preg_match('/\.js$/', $request)) { header("Content-Type", "text/javascript; charset=utf-8"); } + elseif (preg_match('/\.xml$/', $request)) { + header("Content-Type", "application/xml"); + } else { header("Content-Type", "text/html; charset=utf-8"); } |
