-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
119 lines (114 loc) · 4.23 KB
/
sitemap.xml
File metadata and controls
119 lines (114 loc) · 4.23 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
layout: null
permalink: /sitemap.xml
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<!-- ===== Homepage ===== -->
<url>
<loc>{{ site.url }}/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<!-- ===== Static Pages ===== -->
{% for page in site.pages %}
{% if page.url contains '.html' and page.sitemap != false %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>monthly</changefreq>
<priority>{% if page.url == '/world-news.html' or page.url == '/courses/' %}0.8{% elsif page.url == '/about/' or page.url == '/contact/' %}0.6{% else %}0.5{% endif %}</priority>
</url>
{% endif %}
{% endfor %}
<!-- ===== Category Archive Pages ===== -->
<url>
<loc>{{ site.url }}/category/make-money-online/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ site.url }}/category/seo-tips/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ site.url }}/category/remote-work/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ site.url }}/category/programming/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ site.url }}/category/cybersecurity/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ site.url }}/category/reviews/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ site.url }}/category/wararka-caalamka/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ site.url }}/category/general/</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<!-- ===== All Blog Posts ===== -->
{% for post in site.posts %}
{% assign post_priority = "0.6" %}
{% assign post_freq = "monthly" %}
{% if post.categories contains "SEO Tips" %}
{% assign post_priority = "0.9" %}
{% assign post_freq = "weekly" %}
{% elsif post.categories contains "Make Money Online" %}
{% assign post_priority = "0.8" %}
{% assign post_freq = "weekly" %}
{% elsif post.categories contains "Wararka Caalamka" %}
{% assign post_priority = "0.8" %}
{% assign post_freq = "weekly" %}
{% elsif post.categories contains "Reviews" %}
{% assign post_priority = "0.7" %}
{% assign post_freq = "monthly" %}
{% elsif post.categories contains "Programming" %}
{% assign post_priority = "0.7" %}
{% assign post_freq = "monthly" %}
{% elsif post.categories contains "Cybersecurity" %}
{% assign post_priority = "0.7" %}
{% assign post_freq = "monthly" %}
{% elsif post.categories contains "Remote Work" %}
{% assign post_priority = "0.7" %}
{% assign post_freq = "monthly" %}
{% endif %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
<lastmod>{{ post.date | date: '%Y-%m-%dT%H:%M:%S+00:00' }}</lastmod>
<changefreq>{{ post_freq }}</changefreq>
<priority>{{ post_priority }}</priority>
{% if post.image %}
<image:image>
<image:loc>{% if post.image contains "://" %}{{ post.image | xml_escape }}{% else %}{{ site.url }}{{ post.image | xml_escape }}{% endif %}</image:loc>
<image:title>{{ post.title | xml_escape }}</image:title>
</image:image>
{% endif %}
</url>
{% endfor %}
</urlset>