forked from cloudify-cosmo/getcloudify.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap_raw.xml
65 lines (60 loc) · 1.91 KB
/
sitemap_raw.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
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">
{% assign siteUrl="http://www.cloudifysource.org" %}
<url>
<loc>{{ siteUrl }}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for post in site.posts %}
<url>
<loc>{{ siteUrl }}{{ post.url }}</loc>
<lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.2</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.url contains '2.1' %}
{% else %}
{% if page.url contains '_raw' %}
<url>
<loc>{{ siteUrl }}{{ page.url | remove :'_raw' }}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% if page.changefreq %}
<changefreq>{{ page.changefreq }}</changefreq>
{% endif %}
{% if page.priority %}
<priority>{{ page.priority }}</priority>
{% endif %}
</url>
{% else %}
{% if page.url contains 'orig' or page.url contains 'test' or page.url contains 'hp.html' or page.url contains 'sharonetest' or page.url contains '2.1' %}
{% else %}
<url>
<loc>{{ siteUrl }}{{ page.url }}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% if page.changefreq %}
<changefreq>{{ page.changefreq }}</changefreq>
{% endif %}
{% if page.priority %}
<priority>{{ page.priority }}</priority>
{% endif %}
</url>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% for currRawtag in site.tags %}
{% capture currTag %}{{ currRawtag[0] }} {% endcapture %}
<url>
<loc>{{ siteUrl }}/tags/{{ currTag | append :'dummy' | remove :' dummy' }}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
</url>
{% endfor %}
</urlset>