feat: use latex hugo template

This commit is contained in:
Youwen Wu 2025-06-21 02:30:42 -07:00
parent 1d12f5614d
commit 9004c27ceb
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
56 changed files with 1666 additions and 2 deletions

43
flake.nix Normal file
View file

@ -0,0 +1,43 @@
{
description = "Hugo Simple Example Site";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
{
self,
nixpkgs,
flake-utils,
treefmt-nix,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
formatter = treefmtEval.config.build.wrapper;
checks = {
formatting = treefmtEval.config.build.check self;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
bun
hugo
just
];
shellHook = ''
[ -d "$PWD/node_modules" ] || bun install
'';
};
}
);
}