Skip to content

Commit 24ac4af

Browse files
committed
Update sitemap.xml
1 parent 8d80b61 commit 24ac4af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sitemap.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ sitemap: false
99

1010
{% comment %} Loop through standard pages generated by Jekyll {% endcomment %}
1111
{% for page in site.html_pages %}
12-
{% comment %} Exclude files you don't want in the sitemap {% endcomment %}
13-
{% if page.url != '/repo-pages/' and page.sitemap != false %}
12+
{% comment %} Exclude files you don't want in the sitemap and repository pages (we'll add those separately) {% endcomment %}
13+
{% if page.url != '/repo-pages/' and page.sitemap != false and page.url contains '/repo/' == false %}
1414
<url>
1515
<loc>{{ site.url }}{{ page.url | remove: 'index.html' }}</loc>
1616
{% if page.last_modified_at %}
@@ -24,7 +24,7 @@ sitemap: false
2424
{% endif %}
2525
{% endfor %}
2626

27-
{% comment %} Loop through repository pages (static pages generated by plugin) {% endcomment %}
27+
{% comment %} Loop through repository pages generated by our plugin {% endcomment %}
2828
{% for repository in site.data.repositories %}
2929
{% assign repo_path = repository.repo | split: '/' %}
3030
{% assign owner = repo_path[0] %}

0 commit comments

Comments
 (0)