mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-08-24 02:57:43 +02:00
manual links updates
This commit is contained in:
@@ -71,6 +71,14 @@ function getManualPageOrder(lang, slug) {
|
|||||||
return index >= 0 ? index : 999;
|
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) {
|
function rewriteManualLinks(content, lang) {
|
||||||
return (content || "")
|
return (content || "")
|
||||||
|
|
||||||
@@ -157,6 +165,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
linkify: true,
|
linkify: true,
|
||||||
typographer: true
|
typographer: true
|
||||||
}).use(markdownItAnchor, {
|
}).use(markdownItAnchor, {
|
||||||
|
slugify: githubCompatibleSlug,
|
||||||
permalink: markdownItAnchor.permalink.headerLink()
|
permalink: markdownItAnchor.permalink.headerLink()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="theme-color" content="#08110b">
|
<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">
|
||||||
<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.' }}">
|
<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 }}">
|
<link rel="canonical" href="https://kst4contest.hamradioonline.de{{ page.url }}">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user