-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is similar to extra_css and extra_javascript except it picks up HTML and XML files and runs them through jinja2 with the global context. This adds for quite a bit of flexability and allows people to easily add custom site maps, static and templates htlp. Fixes #28 Fixes #44
- Loading branch information
Showing
6 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
{% for nav_item in nav %} | ||
{% if nav_item.children %} | ||
{% for nav_item in nav_item.children %} | ||
<url> | ||
<loc>{{ site_url }}{{ nav_item.abs_url }}</loc> | ||
<lastmod>{{nav_item.update_date}}</lastmod> | ||
<changefreq>daily</changefreq> | ||
</url> | ||
{% endfor %} | ||
{% else %} | ||
<url> | ||
<loc>{{ site_url }}{{ nav_item.abs_url }}</loc> | ||
<lastmod>{{nav_item.update_date}}</lastmod> | ||
<changefreq>daily</changefreq> | ||
</url> | ||
{% endif %} | ||
{% endfor %} | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters