mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Pagedown Extra + sitemap.category.xml
Use the pagedown extra instead of standard pagedown. Adding sitemap.category.xml
This commit is contained in:
parent
13592b530d
commit
d12d5662b0
23 changed files with 965 additions and 21 deletions
|
|
@ -1955,7 +1955,7 @@ post('/post/:name/delete', function () {
|
|||
// Show various page (top-level), admin, login, sitemap, static page.
|
||||
get('/:static', function ($static) {
|
||||
|
||||
if ($static === 'sitemap.xml' || $static === 'sitemap.base.xml' || $static === 'sitemap.post.xml' || $static === 'sitemap.static.xml' || $static === 'sitemap.tag.xml' || $static === 'sitemap.archive.xml' || $static === 'sitemap.author.xml') {
|
||||
if ($static === 'sitemap.xml' || $static === 'sitemap.base.xml' || $static === 'sitemap.post.xml' || $static === 'sitemap.static.xml' || $static === 'sitemap.tag.xml' || $static === 'sitemap.archive.xml' || $static === 'sitemap.author.xml' || $static === 'sitemap.category.xml') {
|
||||
|
||||
header('Content-Type: text/xml');
|
||||
|
||||
|
|
@ -1973,6 +1973,8 @@ get('/:static', function ($static) {
|
|||
generate_sitemap('archive');
|
||||
} elseif ($static === 'sitemap.author.xml') {
|
||||
generate_sitemap('author');
|
||||
} elseif ($static === 'sitemap.category.xml') {
|
||||
generate_sitemap('category');
|
||||
}
|
||||
|
||||
die;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue