Browse Source

Add sitemap.xml and robots.txt.

pull/437/head
XhmikosR 11 years ago
parent
commit
4a367979f1
  1. 1
      _config.yml
  2. 10
      docs/robots.txt
  3. 22
      docs/sitemap.xml

1
_config.yml

@ -12,3 +12,4 @@ permalink: pretty
# Server # Server
source: ./docs source: ./docs
port: 4000 port: 4000
url: http://goratchet.com

10
docs/robots.txt

@ -0,0 +1,10 @@
---
layout: nil
---
# www.robotstxt.org/
# Allow crawling of all content
User-agent: *
Disallow:
Sitemap: {{ site.url }}/sitemap.xml

22
docs/sitemap.xml

@ -0,0 +1,22 @@
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for page in site.html_pages %}
{% if page.layout != "home" %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
{% endif %}
{% endfor %}
</urlset>
Loading…
Cancel
Save