1 parent 408047d commit 2dbea5fCopy full SHA for 2dbea5f
2 files changed
packages/markopress/src/plugins/seo/sitemap.ts
@@ -143,7 +143,11 @@ export async function generateSitemap(
143
144
try {
145
// Resolve hostname
146
- const hostname = resolveHostname(config, options);
+ let hostname = resolveHostname(config, options);
147
+ // Remove trailing slash from hostname to avoid double slashes
148
+ if (hostname.endsWith('/')) {
149
+ hostname = hostname.slice(0, -1);
150
+ }
151
152
// Get base path for URL handling
153
const base = config.site?.base || '/';
website/.markopress/config.js
@@ -63,7 +63,7 @@ export default defineConfig({
63
],
64
seo: {
65
sitemap: {
66
- hostname: 'https://markopress.test',
+ hostname: 'https://priestch.github.io/markopress/',
67
}
68
},
69
});
0 commit comments