-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a517ae
commit 096ff9f
Showing
5 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
layout: layouts/home.njk | ||
permalink: 404.html | ||
excludeFromSitemap: true | ||
--- | ||
# Content not found. | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
permalink: feed/.htaccess | ||
excludeFromSitemap: true | ||
--- | ||
# For Apache, to show `{{ metadata.feed.filename }}` when browsing to directory /feed/ (hide the file!) | ||
DirectoryIndex {{ metadata.feed.filename }} | ||
DirectoryIndex {{ metadata.feed.filename }} |
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,16 @@ | ||
--- | ||
permalink: /sitemap.xml | ||
excludeFromSitemap: true | ||
--- | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
{%- for page in collections.all %} | ||
{%- if not page.data.excludeFromSitemap %} | ||
{% set absoluteUrl %}{{ page.url | url | absoluteUrl(metadata.url) }}{% endset %} | ||
<url> | ||
<loc>{{ absoluteUrl }}</loc> | ||
<lastmod>{{ page.date | htmlDateString }}</lastmod> | ||
</url> | ||
{%- endif %} | ||
{%- endfor %} | ||
</urlset> |