aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-02-23 13:33:33 +0200
committerXhmikosR <[email protected]>2014-02-27 17:05:52 +0200
commit17722e5ef23f58bf661c00c7bb8fea306318bcf2 (patch)
tree4c7ca8363004fd90253f760f6ba3095f4e9fa06c
parent4d527f925109a75ab88ff8ec811b781190372506 (diff)
downloadbootstrap-17722e5ef23f58bf661c00c7bb8fea306318bcf2.tar.xz
bootstrap-17722e5ef23f58bf661c00c7bb8fea306318bcf2.zip
Add sitemap.xml and robots.txt files.
-rw-r--r--_config.yml2
-rw-r--r--docs/robots.txt10
-rw-r--r--docs/sitemap.xml22
3 files changed, 33 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml
index dff903daf..d2e1934d8 100644
--- a/_config.yml
+++ b/_config.yml
@@ -11,7 +11,7 @@ destination: ./_gh_pages
host: 0.0.0.0
port: 9001
baseurl: /
-url: http://localhost:9001
+url: http://getbootstrap.com
encoding: UTF-8
exclude:
diff --git a/docs/robots.txt b/docs/robots.txt
new file mode 100644
index 000000000..3f86d8a9d
--- /dev/null
+++ b/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
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
new file mode 100644
index 000000000..7aaf56c9b
--- /dev/null
+++ b/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>