parent
d68349edb6
commit
4316f0e219
|
@ -0,0 +1,5 @@
|
||||||
|
[[language]]
|
||||||
|
name = "templ"
|
||||||
|
language-id = "html"
|
||||||
|
language-servers = ["templ", "vscode-html-language-server", "tailwindcss-ls"]
|
||||||
|
|
|
@ -8,6 +8,9 @@ Links are sourced from [links.yaml](links.yaml).
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
|
NOTE: Currently the tailwind LSP assumes this is a JS project with node_modules, so the standalone CLI setup used with the bundled Catppuccin theme breaks the LSP when it ingests the config.
|
||||||
|
To get tailwind's LSP to work, the plugin needs to be temporarily commented out.
|
||||||
|
|
||||||
### Tools
|
### Tools
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
12
flake.lock
12
flake.lock
|
@ -5,11 +5,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689068808,
|
"lastModified": 1694529238,
|
||||||
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -20,11 +20,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692044854,
|
"lastModified": 1699393291,
|
||||||
"narHash": "sha256-0FcjKrLH9YP/G+oEx7LQO4he/F3BxkAKsgU12q5jopw=",
|
"narHash": "sha256-M+cAaIqvk1zh1tZ2lk2ZcjEPMs1Akuy7s2JZjwO43sc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fd91dcf3107361981d703f09e95fe02299b57ba3",
|
"rev": "e7704a1b645c94d51fdfdb2875638d3ffae0f15b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
16
flake.nix
16
flake.nix
|
@ -37,25 +37,13 @@
|
||||||
mv dist $out
|
mv dist $out
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
packages.default1 = pkgs.stdenv.mkDerivation {
|
|
||||||
pname = "jolheiser.com";
|
|
||||||
version = "site";
|
|
||||||
src = ./.;
|
|
||||||
nativeBuildInputs = with pkgs; [go nur.templ tailwind-ctp];
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
go generate
|
|
||||||
mv dist $out
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
go
|
go
|
||||||
nur.templ
|
nur.templ
|
||||||
tailwind-ctp
|
tailwind-ctp
|
||||||
|
tailwindcss-language-server
|
||||||
|
vscode-langservers-extracted
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ["./dist/*.html"],
|
content: ["./dist/*.html", "*.templ"],
|
||||||
theme: {
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [require("@catppuccin/tailwindcss")],
|
plugins: [require("@catppuccin/tailwindcss")],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue