Skip to content

Commit 4353824

Browse files
author
Kyle Kirkby
committed
Added check for exclude_from_sitemap
1 parent 188c4c7 commit 4353824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sitemap.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ layout:
1212
{% comment %}<!-- very lazy check to see if page is in the exclude list - this means excluded pages are not gonna be in the sitemap at all, write exceptions as necessary -->{% endcomment %}
1313
{% unless site.exclude_from_localization contains node.path %}
1414
{% comment %}<!-- I am assuming if there's not layout assigned, then not include the page in the sitemap, you may want to change this -->{% endcomment %}
15-
{% if node.layout %}
15+
{% if node.layout and exclude_from_sitemap != false %}
1616
<url>
1717
<loc>{% if lang == site.default_lang %}{{ node.url | absolute_url }}{% else %}{{ node.url | prepend: lang | prepend: '/' | absolute_url }}{% endif %}</loc>
1818
</url>

0 commit comments

Comments
 (0)