mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Merge pull request #12866 from twbs/sitemap
Add sitemap.xml and robots.txt files.
This commit is contained in:
commit
7aa813db5d
@ -11,7 +11,7 @@ destination: ./_gh_pages
|
|||||||
host: 0.0.0.0
|
host: 0.0.0.0
|
||||||
port: 9001
|
port: 9001
|
||||||
baseurl: /
|
baseurl: /
|
||||||
url: http://localhost:9001
|
url: http://getbootstrap.com
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
|
10
docs/robots.txt
Normal file
10
docs/robots.txt
Normal file
@ -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
Normal file
22
docs/sitemap.xml
Normal file
@ -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…
x
Reference in New Issue
Block a user