summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CLAUDE.md13
-rw-r--r--content/en/articles/slackware-templates-for-packages/index.md1
-rw-r--r--content/it/articles/slackware-templates-for-packages/index.md1
m---------themes/danix-xyz-hacker0
4 files changed, 8 insertions, 7 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index 184537d..14b7719 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -48,15 +48,18 @@ DO NOT write code for shortcodes without consulting the user first. Implement:
- Feature branches: work branches for features, content, or experiments. Merge to master when done.
**Theme work:**
-1. Edit in theme repo OR submodule (always `git checkout master` first if using submodule)
-2. Commit and push to `danix2-hugo-theme`
-3. Bump submodule pointer in content repo: `git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule" && git push origin master`
+1. Always edit files inside `themes/danix-xyz-hacker/` (the submodule). Never edit `danix2-hugo-theme/` directly and copy over — this causes `main.min.css` to go out of sync with the theme repo.
+2. Always `git checkout master` inside the submodule before editing.
+3. Commit and push from inside `themes/danix-xyz-hacker/` to `danix2-hugo-theme`.
+4. Bump submodule pointer in content repo: `git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule" && git push origin master`
**CSS rebuild (after template changes with new Tailwind classes):**
-1. From content repo root: `npm run build`
-2. Commit compiled CSS in theme: `cd themes/danix-xyz-hacker && git add assets/css/main.min.css && git commit -m "build: recompile CSS" && git push origin master`
+1. From content repo root: `npm run build` (outputs to `themes/danix-xyz-hacker/assets/css/main.min.css`)
+2. Commit compiled CSS in submodule: `cd themes/danix-xyz-hacker && git add assets/css/main.min.css && git commit -m "build: recompile CSS" && git push origin master`
3. Bump submodule: `cd .. && git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule (CSS rebuild)" && git push origin master`
+> ⚠️ `main.min.css` must be committed from inside `themes/danix-xyz-hacker/` — production clones `danix2-hugo-theme` master tip directly, so any compiled CSS not committed there will be missing on deploy.
+
**Deployment to production:**
1. When master is ready to ship: `git checkout production && git merge master && git push origin production`
2. Post-receive hook clones latest `danix2-hugo-theme` master tip and builds the site
diff --git a/content/en/articles/slackware-templates-for-packages/index.md b/content/en/articles/slackware-templates-for-packages/index.md
index b706187..15e34af 100644
--- a/content/en/articles/slackware-templates-for-packages/index.md
+++ b/content/en/articles/slackware-templates-for-packages/index.md
@@ -3,7 +3,6 @@ title = "Slackware Templates for Packages"
author = "Danilo M."
type = "tech"
date = "2026-05-11T18:51:37+02:00"
-draft = true
excerpt = "slackpkg and dependency management in Slackware."
image = "/uppies/2026/05/water-02-1024x768.jpg"
tags = ["linux", "howto", "do it yourself"]
diff --git a/content/it/articles/slackware-templates-for-packages/index.md b/content/it/articles/slackware-templates-for-packages/index.md
index ff6df76..70b4aaa 100644
--- a/content/it/articles/slackware-templates-for-packages/index.md
+++ b/content/it/articles/slackware-templates-for-packages/index.md
@@ -3,7 +3,6 @@ title = "Templates Slackware per i pacchetti"
author = "Danilo M."
type = "tech"
date = "2026-05-11T18:51:37+02:00"
-draft = true
excerpt = "slackpkg e la gestione delle dipendenze in slackware."
image = "/uppies/2026/05/water-02-1024x768.jpg"
tags = ["linux", "howto", "do it yourself"]
diff --git a/themes/danix-xyz-hacker b/themes/danix-xyz-hacker
-Subproject 10a80de12c03697ed8077975e057b35df4f73b3
+Subproject 47d7da6227e8354c1f48289e14970c531e7ebc5