summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-11 14:16:52 +0200
committerDanilo M. <danix@danix.xyz>2026-05-11 14:16:52 +0200
commit8e7bb77a16cad59928225c59b2e6f43fd00d1cb4 (patch)
tree2a17d920482deb9f15b91a8524ace31228cf0b47
parent181538b5204bd5f14d5f4a5fc23c50e7dc3db75d (diff)
downloadpkgs-html-structure-master.tar.gz
pkgs-html-structure-master.zip
feat: restructure assets, add faviconHEADmaster
Move matrix-rain.js to .assets/js/, add favicon.png to .assets/img/. Update all header templates with new JS path and favicon link tag. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--.assets/img/favicon.pngbin0 -> 45033 bytes
-rw-r--r--.assets/js/matrix-rain.js (renamed from .assets/matrix-rain.js)0
-rw-r--r--CLAUDE.md5
-rw-r--r--gen_web_hook.sh6
4 files changed, 8 insertions, 3 deletions
diff --git a/.assets/img/favicon.png b/.assets/img/favicon.png
new file mode 100644
index 0000000..d348983
--- /dev/null
+++ b/.assets/img/favicon.png
Binary files differ
diff --git a/.assets/matrix-rain.js b/.assets/js/matrix-rain.js
index e22ada2..e22ada2 100644
--- a/.assets/matrix-rain.js
+++ b/.assets/js/matrix-rain.js
diff --git a/CLAUDE.md b/CLAUDE.md
index 2e61988..c61fc68 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -30,7 +30,10 @@ CSS variables defined on `:root`:
## Static assets
-`.assets/matrix-rain.js` — matrix rain canvas animation. Served from `$PKGREPO/.assets/`. Loaded via `<script defer>` in every `_header.html`. Hidden from Apache autoindex via `IndexIgnore .assets` in `.htaccess`. When updating, copy the adapted file to `$PKGREPO/.assets/matrix-rain.js` on the server — it is not regenerated by `gen_web_hook.sh`.
+Asset layout under `$PKGREPO/.assets/` (served from `/.assets/`, hidden via `IndexIgnore .assets`):
+
+- `.assets/js/matrix-rain.js` — matrix rain canvas animation. Loaded via `<script defer>` in every `_header.html`. Not regenerated by `gen_web_hook.sh`; copy manually to server when updating.
+- `.assets/img/favicon.png` — site favicon. Referenced via `<link rel="icon">` in every `_header.html`. Copy manually to server.
## Apache configuration
diff --git a/gen_web_hook.sh b/gen_web_hook.sh
index a10d6ac..77e2ec0 100644
--- a/gen_web_hook.sh
+++ b/gen_web_hook.sh
@@ -249,9 +249,10 @@ write_header() {
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>danix Slackware Repository</title>
+ <link rel="icon" type="image/png" href="/.assets/img/favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;600&display=swap" rel="stylesheet">
- <script src="/.assets/matrix-rain.js" defer></script>
+ <script src="/.assets/js/matrix-rain.js" defer></script>
${CSS}
</head>
<body>
@@ -288,9 +289,10 @@ write_category_header() {
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>danix Slackware Repository</title>
+ <link rel="icon" type="image/png" href="/.assets/img/favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;600&display=swap" rel="stylesheet">
- <script src="/.assets/matrix-rain.js" defer></script>
+ <script src="/.assets/js/matrix-rain.js" defer></script>
${CSS}
</head>
<body>