Commit 4fb7f566 authored by Adam Hawkins's avatar Adam Hawkins

Connect sitemap to robots.txt

parent 9a8fd887
Pipeline #4841232 passed with stages
in 42 seconds
......@@ -9,6 +9,11 @@ gems:
- jekyll-sitemap
- jekyll-minifier
jekyll-minifier:
exclude:
- '*.xml'
- '*.txt'
# Site settings
title: /Deploy
email: hi@slashdeploy.com
......
---
layout: ~
permalink: robots.txt
---
User-Agent: *
Sitemap: {{ site.url }}/sitemap.xml
Disallow: /error.html
Disallow: /_sentinel/
......@@ -21,7 +21,11 @@ function setup() {
grep -qF "Disallow: /error.html" "${DIST_PATH}/robots.txt"
}
@test "sentinel.txt is not searchable" {
@test "sitemap set" {
grep -qE 'Sitemap:\shttps?:\/\/.+\/sitemap\.xml' "${DIST_PATH}/robots.txt"
}
@test "sentinel not searchable" {
grep -qF "Disallow: /_sentinel/" "${DIST_PATH}/robots.txt"
}
......
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