|
Revision 20, 1.1 kB
(checked in by nobu, 1 year ago)
|
fixed #4 #8
- サイトマップの追加。
- 個別ページの追加。
- テストの更新。
|
| Line | |
|---|
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" |
|---|
| 3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 4 |
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 |
|---|
| 5 |
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd"> |
|---|
| 6 |
{% spaceless %} |
|---|
| 7 |
{% if entries %} |
|---|
| 8 |
{% for e in entries %} |
|---|
| 9 |
{% if forloop.first %} |
|---|
| 10 |
<url> |
|---|
| 11 |
<loc>http://{{ SITE_DOMAIN }}/</loc> |
|---|
| 12 |
<lastmod>{{ e.updated_at|date:"Y-m-d\TH:i:s" }}+09:00</lastmod> |
|---|
| 13 |
<changefreq>daily</changefreq> |
|---|
| 14 |
<priority>1.0</priority> |
|---|
| 15 |
</url> |
|---|
| 16 |
{% endif %} |
|---|
| 17 |
<url> |
|---|
| 18 |
<loc>http://{{ SITE_DOMAIN }}{{ e.get_absolute_url }}</loc> |
|---|
| 19 |
<lastmod>{{ e.updated_at|date:"Y-m-d\TH:i:s" }}+09:00</lastmod> |
|---|
| 20 |
<changefreq>weekly</changefreq> |
|---|
| 21 |
<priority>0.5</priority> |
|---|
| 22 |
</url> |
|---|
| 23 |
{% endfor %} |
|---|
| 24 |
{% endif %} |
|---|
| 25 |
{% if flatpages %} |
|---|
| 26 |
{% for e in flatpages %} |
|---|
| 27 |
<url> |
|---|
| 28 |
<loc>http://{{ SITE_DOMAIN }}{{ e.get_absolute_url }}</loc> |
|---|
| 29 |
<lastmod>{{ e.updated_at|date:"Y-m-d\TH:i:s" }}+09:00</lastmod> |
|---|
| 30 |
<changefreq>weekly</changefreq> |
|---|
| 31 |
<priority>0.5</priority> |
|---|
| 32 |
</url> |
|---|
| 33 |
{% endfor %} |
|---|
| 34 |
{% endif %} |
|---|
| 35 |
{% endspaceless %} |
|---|
| 36 |
</urlset> |
|---|