-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
60 lines (60 loc) · 2.58 KB
/
sitemap.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
---
layout: null
sitemap:
exclude: 'yes'
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for pw in site.pathways %}
<url>
<loc>{{ site.url }}{{ pw.url }}</loc>
{% if pw.last-edited %}
<lastmod>{{ pw.last-edited | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
<priority>0.5</priority>
<PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
<DataObject type="document">
<Attribute name="title">{{ pw.title }} ({{ pw.wpid }})</Attribute>
<Attribute name="author">{{ pw.authors | array_to_sentence_string }}</Attribute>
<Attribute name="description">{{ pw.description | truncate: 200 | xml_escape | textilize }}</Attribute>
<Attribute name="organisms">{{ pw.organisms | array_to_sentence_string }}</Attribute>
<Attribute name="last_update">{{ pw.last-edited }}</Attribute>
</DataObject>
<DataObject type="thumbnail">
<Attribute name="src" value="/assets/img/{{ pw.wpid }}/{{ pw.wpid }}-thumb.png" />
<Attribute name="width" value="160" />
</DataObject>
<DataObject type="action">
<Attribute name="label" value="Download GPML"/>
<Attribute name="url" value="/wikipathways-assets/pathways/{{ pw.wpid }}/{{ pw.wpid }}.gpml"/>
<Attribute name="class" value="download"/>
</DataObject>
<DataObject type="action">
<Attribute name="label" value="Download SVG"/>
<Attribute name="url" value="/wikipathways-assets/pathways/{{ pw.wpid }}/{{ pw.wpid }}.svg"/>
<Attribute name="class" value="download"/>
</DataObject>
<DataObject type="action">
<Attribute name="label" value="Fullscreen View"/>
<Attribute name="url" value="https://pathway-viewer.toolforge.org/?id={{ pw.wpid }}"/>
<Attribute name="class" value="fullscreen"/>
</DataObject>
</PageMap>
</url>
{% endfor %}
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" or page.url contains "instance" or page.url contains "index.php" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
<priority>0.3</priority>
</url>
{% endunless %}
{% endfor %}
</urlset>