From 124afb9be9de8ac20cfb1e8093643829c9acbd52 Mon Sep 17 00:00:00 2001 From: Fabien POLLY Date: Fri, 23 Jan 2026 11:57:47 +0100 Subject: [PATCH] fixes --- .well-known/security.txt | 4 ++++ config.js | 5 +++++ index.html | 45 ++++++++++++++++++++++++++++++++-------- robots.txt | 5 +++++ security.txt | 4 ++++ 5 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 .well-known/security.txt create mode 100644 robots.txt create mode 100644 security.txt diff --git a/.well-known/security.txt b/.well-known/security.txt new file mode 100644 index 0000000..9709c26 --- /dev/null +++ b/.well-known/security.txt @@ -0,0 +1,4 @@ +Contact: https://github.com/infinition/Bjorn/issues +Expires: 2027-01-01T00:00:00.000Z +Preferred-Languages: en, fr +Policy: https://github.com/infinition/Bjorn/blob/wiki/SECURITY.md diff --git a/config.js b/config.js index fe42226..f0896ee 100644 --- a/config.js +++ b/config.js @@ -92,6 +92,11 @@ const CONFIG = { logoPath: "assets/bjorn.png", logoPlaceholder: "https://placehold.co/40x40/111214/22c55e?text=A", + // PWA & SEO Settings + themeColor: "#0B0C0E", + accentColor: "#22c55e", + manifestPath: "manifest.json", + // Social Links // Set to null or empty string to hide the link social: { diff --git a/index.html b/index.html index 2aca8c3..cde1991 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ + + BJORN // WIKI NODE @@ -23,16 +25,16 @@ - - - - - - - - + + + + + + + + - + @@ -1122,6 +1124,31 @@ } } + // SEO & PWA Dynamic Updates + const fullTitle = `${CONFIG.projectName} // ${CONFIG.projectSubtitle}`; + document.getElementById('og-title').content = fullTitle; + document.getElementById('tw-title').content = fullTitle; + document.getElementById('og-url').content = window.location.href; + document.getElementById('tw-url').content = window.location.href; + document.getElementById('og-image').content = CONFIG.logoPath; + document.getElementById('tw-image').content = CONFIG.logoPath; + document.getElementById('og-desc').content = CONFIG.description; + document.getElementById('tw-desc').content = CONFIG.description; + + document.getElementById('favicon-32').href = CONFIG.logoPath; + document.getElementById('favicon-16').href = CONFIG.logoPath; + document.getElementById('apple-icon').href = CONFIG.logoPath; + + const maskIcon = document.getElementById('mask-icon'); + maskIcon.href = CONFIG.logoPath; + maskIcon.setAttribute('color', CONFIG.accentColor || '#22c55e'); + + document.getElementById('apple-title').content = CONFIG.projectName; + document.getElementById('app-name').content = CONFIG.projectName; + document.getElementById('ms-tile-color').content = CONFIG.themeColor || '#0B0C0E'; + document.getElementById('theme-color-meta').content = CONFIG.themeColor || '#0B0C0E'; + document.getElementById('manifest-link').href = CONFIG.manifestPath || 'manifest.json'; + renderCustomLinks(); renderFooter(); renderSocialLinks(); diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..03f1a31 --- /dev/null +++ b/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Allow: / + +# Sitemaps (Optionnel, à mettre à jour avec votre URL réelle) +# Sitemap: https://votre-url-wiki.com/sitemap.xml diff --git a/security.txt b/security.txt new file mode 100644 index 0000000..9709c26 --- /dev/null +++ b/security.txt @@ -0,0 +1,4 @@ +Contact: https://github.com/infinition/Bjorn/issues +Expires: 2027-01-01T00:00:00.000Z +Preferred-Languages: en, fr +Policy: https://github.com/infinition/Bjorn/blob/wiki/SECURITY.md