Commit 45bd775e authored by Luke McGregor's avatar Luke McGregor

Removed noindex pages and JS file from sitemap

parent 595dd537
---
layout: null
sitemap:
exclude: 'yes'
---
$(document).ready(function () {
$('a.blog-button').click(function (e) {
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return
......
......@@ -30,7 +30,7 @@ sitemap:
{% endunless %}
{% endfor %}
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" %}
{% unless page.sitemap.exclude == "yes" or page.robots contains "noindex" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.sitemap.lastmod %}
......@@ -53,4 +53,4 @@ sitemap:
</url>
{% endunless %}
{% endfor %}
</urlset>
\ No newline at end of file
</urlset>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment