mirror of
https://github.com/infinition/Bjorn.git
synced 2026-02-05 03:31:02 +00:00
fixes
This commit is contained in:
4
.well-known/security.txt
Normal file
4
.well-known/security.txt
Normal 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
|
||||||
@@ -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: {
|
||||||
|
|||||||
45
index.html
45
index.html
@@ -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
5
robots.txt
Normal 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
4
security.txt
Normal 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
|
||||||
Reference in New Issue
Block a user