This commit is contained in:
Fabien POLLY
2026-01-23 11:57:47 +01:00
parent 686263ca6a
commit 124afb9be9
5 changed files with 54 additions and 9 deletions

4
.well-known/security.txt Normal file
View File

@@ -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

View File

@@ -92,6 +92,11 @@ const CONFIG = {
logoPath: "assets/bjorn.png", logoPath: "assets/bjorn.png",
logoPlaceholder: "https://placehold.co/40x40/111214/22c55e?text=A", logoPlaceholder: "https://placehold.co/40x40/111214/22c55e?text=A",
// PWA & SEO Settings
themeColor: "#0B0C0E",
accentColor: "#22c55e",
manifestPath: "manifest.json",
// Social Links // Social Links
// Set to null or empty string to hide the link // Set to null or empty string to hide the link
social: { social: {

View File

@@ -3,6 +3,8 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="referrer" content="strict-origin-when-cross-origin">
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title id="site-title">BJORN // WIKI NODE</title> <title id="site-title">BJORN // WIKI NODE</title>
@@ -23,16 +25,16 @@
<meta property="twitter:image" id="tw-image" content="assets/bjorn.png"> <meta property="twitter:image" id="tw-image" content="assets/bjorn.png">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" sizes="32x32" href="assets/bjorn.png"> <link rel="icon" id="favicon-32" type="image/png" sizes="32x32" href="assets/bjorn.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/bjorn.png"> <link rel="icon" id="favicon-16" type="image/png" sizes="16x16" href="assets/bjorn.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/bjorn.png"> <link rel="apple-touch-icon" id="apple-icon" sizes="180x180" href="assets/bjorn.png">
<link rel="mask-icon" href="assets/bjorn.png" color="#22c55e"> <link rel="mask-icon" id="mask-icon" href="assets/bjorn.png" color="#22c55e">
<meta name="apple-mobile-web-app-title" content="BjornWiki"> <meta name="apple-mobile-web-app-title" id="apple-title" content="BjornWiki">
<meta name="application-name" content="BjornWiki"> <meta name="application-name" id="app-name" content="BjornWiki">
<meta name="msapplication-TileColor" content="#0B0C0E"> <meta name="msapplication-TileColor" id="ms-tile-color" content="#0B0C0E">
<meta name="theme-color" content="#0B0C0E"> <meta name="theme-color" id="theme-color-meta" content="#0B0C0E">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="manifest" href="manifest.json"> <link rel="manifest" id="manifest-link" href="manifest.json">
<!-- Configuration --> <!-- Configuration -->
<script src="config.js"></script> <script src="config.js"></script>
@@ -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(); renderCustomLinks();
renderFooter(); renderFooter();
renderSocialLinks(); renderSocialLinks();

5
robots.txt Normal file
View File

@@ -0,0 +1,5 @@
User-agent: *
Allow: /
# Sitemaps (Optionnel, à mettre à jour avec votre URL réelle)
# Sitemap: https://votre-url-wiki.com/sitemap.xml

4
security.txt Normal file
View File

@@ -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