diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..3550a30f --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/config/_default/config.yaml b/config/_default/config.yaml index a394c9bc..d14f49ff 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -16,7 +16,7 @@ markup: taxonomies: tag: tags author: author -disableKinds: ['taxonomyTerm'] +disableKinds: ['taxonomy'] outputFormats: SearchIndex: mediaType: "application/json" diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..72f2242f --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1725194671, + "narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b833ff01a0d694b910daca6e2ff4a3f26dee478c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..2baaf96a --- /dev/null +++ b/flake.nix @@ -0,0 +1,43 @@ +{ + description = "An environment for the Hugo static site generator "; + + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + in + { + devShells."${system}".default = + let + pkgs = import nixpkgs { + inherit system; + }; + in + pkgs.mkShell { + packages = with pkgs; [ + hugo + yarn + lychee + ]; + shellHook = '' + PROJECTDIR=`pwd` + hugo-deploy() { + echo "This doesn't do anything, but maybe it will one day." + } + hugo-server() { + hugo server --disableFastRender -verbose + } + check-links() { + cd $PROJECTDIR/content && lychee . && cd $PROJECTDIR + } + + # hugo-server + ''; + }; + }; +}