Skip to content

Commit 45bd775

Browse files
committed
Removed noindex pages and JS file from sitemap
1 parent 595dd53 commit 45bd775

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

js/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
layout: null
3+
sitemap:
4+
exclude: 'yes'
35
---
6+
47
$(document).ready(function () {
58
$('a.blog-button').click(function (e) {
69
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return

sitemap.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sitemap:
3030
{% endunless %}
3131
{% endfor %}
3232
{% for page in site.pages %}
33-
{% unless page.sitemap.exclude == "yes" %}
33+
{% unless page.sitemap.exclude == "yes" or page.robots contains "noindex" %}
3434
<url>
3535
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
3636
{% if page.sitemap.lastmod %}
@@ -53,4 +53,4 @@ sitemap:
5353
</url>
5454
{% endunless %}
5555
{% endfor %}
56-
</urlset>
56+
</urlset>

0 commit comments

Comments
 (0)