manual links updates

This commit is contained in:
Marc Froehlich
2026-08-13 00:56:22 +02:00
parent 6966edbfff
commit e3b2ea725a
2 changed files with 9 additions and 1 deletions
+9
View File
@@ -71,6 +71,14 @@ function getManualPageOrder(lang, slug) {
return index >= 0 ? index : 999;
}
function githubCompatibleSlug(value) {
return (value || "")
.trim()
.toLowerCase()
.replace(/[^\p{L}\p{N}\s_-]/gu, "")
.replace(/\s+/g, "-");
}
function rewriteManualLinks(content, lang) {
return (content || "")
@@ -157,6 +165,7 @@ module.exports = function (eleventyConfig) {
linkify: true,
typographer: true
}).use(markdownItAnchor, {
slugify: githubCompatibleSlug,
permalink: markdownItAnchor.permalink.headerLink()
});
-1
View File
@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#08110b">
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
<meta name="description" content="{{ description or 'KST4Contest connects ON4KST chat, candidate selection, sked planning and station software for VHF, UHF and SHF contest operation.' }}">
<link rel="canonical" href="https://kst4contest.hamradioonline.de{{ page.url }}">