1. csp 允许执行google analytics代码

2. 更换首页图片
3. 调整页面颜色
This commit is contained in:
celebrateyang 2024-10-17 11:26:49 +08:00
parent fe0db0c17b
commit 641ab6bbbe
4 changed files with 10 additions and 3 deletions

View File

@ -16,6 +16,7 @@
<meta name="darkreader-lock">
<meta name="color-scheme" content="only light">
<link rel="icon" href="%sveltekit.assets%/favicon.png">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9LGPCDJK2R"></script>
@ -26,6 +27,7 @@
gtag('config', 'G-9LGPCDJK2R');
</script>
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/icons/apple-touch-icon.png">
<link type="application/activity+json" href="" />

View File

@ -95,7 +95,7 @@
<style>
:global(:root) {
--primary: #ffffff;
--secondary: #000000;
--secondary: #82b52d;
--white: #ffffff;
--gray: #75757e;
@ -122,7 +122,7 @@
--dialog-backdrop: rgba(255, 255, 255, 0.3);
--sidebar-bg: #000000;
--sidebar-bg: #82b52d;
--sidebar-highlight: #ffffff;
--sidebar-hover: rgba(255, 255, 255, 0.1);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 253 KiB

View File

@ -63,19 +63,24 @@ const config = {
"object-src": ["none"],
"frame-src": [
"self",
"challenges.cloudflare.com"
"challenges.cloudflare.com",
"www.googletagmanager.com",
"www.google-analytics.com"
],
"script-src": [
"self",
"wasm-unsafe-eval",
"challenges.cloudflare.com",
"www.googletagmanager.com",
// eslint-disable-next-line no-undef
process.env.WEB_PLAUSIBLE_HOST ? process.env.WEB_PLAUSIBLE_HOST : "",
// hash of the theme preloader in app.html
"sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=",
"sha256-oQHnOU77SR8E/F28VTyS5XSYOYZVgdVbOb/tEkoMvfs="
],
"frame-ancestors": ["none"]