Skip to content

Commit d8cd0d7

Browse files
committed
Sitemap Schema Updates
1 parent ca6da46 commit d8cd0d7

4 files changed

Lines changed: 33 additions & 39 deletions

File tree

docs/sitemap.xml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
3-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
4+
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
7+
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
48
<url>
59
<loc>https://procstack.github.io/Init.htm</loc>
610
<lastmod>2025-06-19</lastmod>
711
<changefreq>monthly</changefreq>
812
<priority>1.0</priority>
9-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
13+
<image:image>
1014
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
1115
</image:image>
1216
</url>
@@ -15,7 +19,7 @@
1519
<lastmod>2025-03-06</lastmod>
1620
<changefreq>monthly</changefreq>
1721
<priority>1.0</priority>
18-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
22+
<image:image>
1923
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
2024
</image:image>
2125
</url>
@@ -24,7 +28,7 @@
2428
<lastmod>2025-03-12</lastmod>
2529
<changefreq>monthly</changefreq>
2630
<priority>1.0</priority>
27-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
31+
<image:image>
2832
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
2933
</image:image>
3034
</url>
@@ -33,7 +37,7 @@
3337
<lastmod>2025-03-12</lastmod>
3438
<changefreq>monthly</changefreq>
3539
<priority>1.0</priority>
36-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
40+
<image:image>
3741
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
3842
</image:image>
3943
</url>
@@ -42,7 +46,7 @@
4246
<lastmod>2025-03-12</lastmod>
4347
<changefreq>monthly</changefreq>
4448
<priority>0.95</priority>
45-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
49+
<image:image>
4650
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
4751
</image:image>
4852
</url>
@@ -51,7 +55,7 @@
5155
<lastmod>2025-03-12</lastmod>
5256
<changefreq>monthly</changefreq>
5357
<priority>0.95</priority>
54-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
58+
<image:image>
5559
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
5660
</image:image>
5761
</url>
@@ -60,7 +64,7 @@
6064
<lastmod>2025-03-12</lastmod>
6165
<changefreq>monthly</changefreq>
6266
<priority>0.8</priority>
63-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
67+
<image:image>
6468
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
6569
</image:image>
6670
</url>
@@ -69,7 +73,7 @@
6973
<lastmod>2025-03-24</lastmod>
7074
<changefreq>monthly</changefreq>
7175
<priority>0.9</priority>
72-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
76+
<image:image>
7377
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
7478
</image:image>
7579
</url>
@@ -78,7 +82,7 @@
7882
<lastmod>2025-06-19</lastmod>
7983
<changefreq>monthly</changefreq>
8084
<priority>0.95</priority>
81-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
85+
<image:image>
8286
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
8387
</image:image>
8488
</url>
@@ -87,7 +91,7 @@
8791
<lastmod>2025-06-19</lastmod>
8892
<changefreq>monthly</changefreq>
8993
<priority>0.95</priority>
90-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
94+
<image:image>
9195
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
9296
</image:image>
9397
</url>
@@ -96,7 +100,7 @@
96100
<lastmod>2025-02-14</lastmod>
97101
<changefreq>monthly</changefreq>
98102
<priority>0.9</priority>
99-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
103+
<image:image>
100104
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
101105
</image:image>
102106
</url>
@@ -105,7 +109,7 @@
105109
<lastmod>2025-02-24</lastmod>
106110
<changefreq>monthly</changefreq>
107111
<priority>0.9</priority>
108-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
112+
<image:image>
109113
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
110114
</image:image>
111115
</url>
@@ -114,7 +118,7 @@
114118
<lastmod>2025-02-24</lastmod>
115119
<changefreq>monthly</changefreq>
116120
<priority>0.9</priority>
117-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
121+
<image:image>
118122
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
119123
</image:image>
120124
</url>
@@ -123,7 +127,7 @@
123127
<lastmod>2025-02-14</lastmod>
124128
<changefreq>monthly</changefreq>
125129
<priority>0.75</priority>
126-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
130+
<image:image>
127131
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
128132
</image:image>
129133
</url>
@@ -132,7 +136,7 @@
132136
<lastmod>2025-02-24</lastmod>
133137
<changefreq>monthly</changefreq>
134138
<priority>0.9</priority>
135-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
139+
<image:image>
136140
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
137141
</image:image>
138142
</url>
@@ -141,7 +145,7 @@
141145
<lastmod>2025-02-24</lastmod>
142146
<changefreq>monthly</changefreq>
143147
<priority>0.9</priority>
144-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
148+
<image:image>
145149
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
146150
</image:image>
147151
</url>
@@ -150,7 +154,7 @@
150154
<lastmod>2025-02-24</lastmod>
151155
<changefreq>monthly</changefreq>
152156
<priority>0.8</priority>
153-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
157+
<image:image>
154158
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
155159
</image:image>
156160
</url>
@@ -159,7 +163,7 @@
159163
<lastmod>2025-03-25</lastmod>
160164
<changefreq>monthly</changefreq>
161165
<priority>0.95</priority>
162-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
166+
<image:image>
163167
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
164168
</image:image>
165169
</url>
@@ -168,7 +172,7 @@
168172
<lastmod>2025-03-24</lastmod>
169173
<changefreq>monthly</changefreq>
170174
<priority>1.0</priority>
171-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
175+
<image:image>
172176
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
173177
</image:image>
174178
</url>
@@ -177,7 +181,7 @@
177181
<lastmod>2025-03-25</lastmod>
178182
<changefreq>monthly</changefreq>
179183
<priority>0.9</priority>
180-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
184+
<image:image>
181185
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
182186
</image:image>
183187
</url>
@@ -186,7 +190,7 @@
186190
<lastmod>2025-05-07</lastmod>
187191
<changefreq>monthly</changefreq>
188192
<priority>0.9</priority>
189-
<image:image xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
193+
<image:image>
190194
<image:loc>https://procstack.github.io/images/ProcStack_th.jpg</image:loc>
191195
</image:image>
192196
</url>

docs/sitemap.xsl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@
101101
td {
102102
padding: 8px;
103103
border-bottom: 1px solid #8a8a8a;
104-
vertical-align: top;
105104
text-align: center;
106-
color: #8f8f8f;
105+
color: rgb(147, 160, 171);
107106
}
108107

109108
.td-url{
@@ -123,11 +122,6 @@
123122
color: #5baaff;
124123
}
125124

126-
.date {
127-
color:rgb(147, 160, 171);
128-
font-size: 13px;
129-
}
130-
131125
.frequency {
132126
background: #e9ecef;
133127
padding: 4px 8px;
@@ -230,7 +224,7 @@
230224
</div>
231225
<div class="stat-item">
232226
<span class="stat-number">
233-
2025-06-24
227+
2025-06-25
234228
</span>
235229
<span class="stat-label">Generated</span>
236230
</div>

packing/renderStaticPages.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,13 @@ const htmlToMarkdown = (html, title = '') => {
150150
};
151151

152152

153+
153154
const generateSitemap = (urls) => {
154-
const header = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n`;
155+
const header = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"\n xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"\n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9\n http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">\n`;
155156
const footer = `\n</urlset>`;
156157
let imageTag = '';
157158
if( thumbnailUrl !== '' ){
158-
imageTag = `\n <image:image xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\">\n <image:loc>${thumbnailUrl}</image:loc>\n </image:image>`;
159+
imageTag = `\n <image:image>\n <image:loc>${thumbnailUrl}</image:loc>\n </image:image>`;
159160
}
160161

161162

packing/sitemap.xsl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
border-bottom: 1px solid #8a8a8a;
104104
vertical-align: top;
105105
text-align: center;
106-
color: #8f8f8f;
106+
color: rgb(147, 160, 171);
107107
}
108108

109109
.td-url{
@@ -123,11 +123,6 @@
123123
color: #5baaff;
124124
}
125125

126-
.date {
127-
color:rgb(147, 160, 171);
128-
font-size: 13px;
129-
}
130-
131126
.frequency {
132127
background: #e9ecef;
133128
padding: 4px 8px;
@@ -230,7 +225,7 @@
230225
</div>
231226
<div class="stat-item">
232227
<span class="stat-number">
233-
2025-06-19
228+
2025-06-25
234229
</span>
235230
<span class="stat-label">Generated</span>
236231
</div>

0 commit comments

Comments
 (0)