fix favicon, cloudflare script blocking, error in js on startup
This commit is contained in:
@@ -40,6 +40,15 @@ http {
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; object-src 'none';" always;
|
||||
|
||||
# Favicon: serve at standard /favicon.ico location
|
||||
location = /favicon.ico {
|
||||
alias /usr/share/nginx/html/assets/logos/favicon.png;
|
||||
expires 7d;
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Logo assets: 1 hour cache
|
||||
location ~* ^/assets/logos/ {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; object-src 'none';">
|
||||
<link rel="stylesheet" href="css/pico.jade.min.css">
|
||||
<link rel="stylesheet" href="site-styles/style.css">
|
||||
<title>Keyboard Vagabond - About</title>
|
||||
|
||||
BIN
public/assets/logos/favicon.png
Normal file
BIN
public/assets/logos/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
@@ -5,6 +5,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; object-src 'none';">
|
||||
|
||||
<!-- Primary SEO Meta Tags -->
|
||||
<title>Keyboard Vagabond - Fediverse for Digital Nomads</title>
|
||||
|
||||
@@ -40,10 +40,7 @@
|
||||
|
||||
applyTheme(storedTheme);
|
||||
|
||||
themeToggle.addEventListener('click', toggleTheme);
|
||||
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
||||
// Only apply theme if user hasn't made an explicit choice
|
||||
const storedTheme = getStoredTheme();
|
||||
if (storedTheme === 'auto') {
|
||||
applyTheme();
|
||||
|
||||
Reference in New Issue
Block a user