This repository was archived by the owner on Sep 15, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathsitemap.xml
More file actions
136 lines (126 loc) · 6.16 KB
/
Copy pathsitemap.xml
File metadata and controls
136 lines (126 loc) · 6.16 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Homepage -->
<url>
<loc>{{ site.url }}/</loc>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<!-- Main Pages (High Priority) -->
{% for page in site.pages %}
{% if page.sitemap != false and page.layout != 'redirected' and page.url != "/404.html" %}
{% if page.url == '/products/' or page.url == '/products/swis/' or page.url == '/about/' or page.url == '/contact/' or page.url == '/solutions/' or page.url == '/support/' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
<!-- Gen4x Product Series (High Priority - New Product Line) -->
{% for page in site.gen4x %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.85</priority>
</url>
{% endfor %}
<!-- Industries Pages and Solutions Detail Pages (High Priority) -->
{% for page in site.pages %}
{% if page.sitemap != false and page.layout != 'redirected' %}
{% if page.url contains '/industries/' or page.url == '/solutions/data-harvesting.html' or page.url == '/solutions/underwater-network.html' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
<!-- Gen4x Pages -->
{% for page in site.pages %}
{% if page.url contains '/products/wnc/gen4x/' and page.sitemap != false and page.layout != 'redirected' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{% endif %}
{% endfor %}
<!-- Product Pages (excluding gen4x already handled) -->
{% for page in site.pages %}
{% if page.url contains '/products/' and page.sitemap != false and page.layout != 'redirected' and page.url != '/products/' and page.url != '/products/swis/' %}
{% unless page.url contains '/gen4x/' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.75</priority>
</url>
{% endunless %}
{% endif %}
{% endfor %}
<!-- User Stories -->
{% for story in site.userstories %}
<url>
<loc>{{ site.url | append: story.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if story.last_modified %}<lastmod>{{ story.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endfor %}
<!-- Tools and Resources -->
{% for page in site.pages %}
{% if page.sitemap != false and page.layout != 'redirected' and page.url != "/404.html" %}
{% if page.url contains '/battery-calculator/' or page.url contains '/technical-resources/' or page.url contains '/brochures/' or page.url contains '/nortek-ad2cp-reader/' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
<!-- FAQ -->
{% for page in site.pages %}
{% if page.url contains '/faq/' and page.sitemap != false and page.layout != 'redirected' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endif %}
{% endfor %}
<!-- Blog Posts -->
{% for post in site.posts %}
<url>
<loc>{{ site.url | append: post.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
{% endfor %}
<!-- All Other Pages -->
{% for page in site.pages %}
{% if page.sitemap != false and page.layout != 'redirected' and page.url != "/404.html" and page.url != "/" %}
{% unless page.url == '/products/' or page.url == '/about/' or page.url == '/contact/' or page.url == '/solutions/' or page.url == '/support/' or page.url contains '/gen4x/' or page.url contains '/products/' or page.url contains '/battery-calculator/' or page.url contains '/technical-resources/' or page.url contains '/brochures/' or page.url contains '/nortek-ad2cp-reader/' or page.url contains '/unetstack/' or page.url contains '/faq/' or page.url contains '/industries/' or page.url == '/solutions/data-harvesting.html' or page.url == '/solutions/underwater-network.html' or page.url contains '/tag/' %}
<url>
<loc>{{ site.url | append: page.url | replace: '//', '/' | replace: ':/', '://' }}</loc>
{% if page.last_modified %}<lastmod>{{ page.last_modified | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
{% endunless %}
{% endif %}
{% endfor %}
</urlset>