Skip to content
Browse files
Include PHP in sitemaps
  • Loading branch information
da2x committed Jul 27, 2015
1 parent 980312b commit 0de18d49e3bb782780583cddd74451835024942f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -12,6 +12,7 @@ Features

* Include .php files in sitemaps
* Retry all client errors (4xx) to HEAD as GET reques when checking remote links
* Graceful fallback in ``nikola serve --detach`` on Windows (Issue #1913)
* Don't auto-rebuild on changes to ".foo" or "foo~" or changes in folders
@@ -117,7 +117,7 @@ def gen_tasks(self):
"mapped_extensions":'MAPPED_EXTENSIONS', ['.atom', '.html', '.htm', '.xml', '.rss']),
"mapped_extensions":'MAPPED_EXTENSIONS', ['.atom', '.html', '.htm', '.php', '.xml', '.rss']),
@@ -174,7 +174,7 @@ def scan_locs():
filehead =

if path.endswith('.html') or path.endswith('.htm'):
if path.endswith('.html') or path.endswith('.htm') or path.endswith('.php'):
""" ignores "html" files without doctype """
if b'<!doctype html' not in filehead.lower():

0 comments on commit 0de18d4

Please sign in to comment.