poison theme, add socials including cutom forgejo

This commit is contained in:
Vinzenz Schroeter 2025-04-06 14:45:00 +02:00
parent def7b1a01f
commit 1264cfd404
8 changed files with 180 additions and 8 deletions

View file

@ -43,6 +43,23 @@
cp -r * $out
'';
};
hugo-theme-poison = pkgs.stdenv.mkDerivation {
pname = "hugo-theme-poison";
homepage = "https://poison.lukeorth.com/";
version = "";
src = pkgs.fetchFromGitHub {
owner = "lukeorth";
repo = "poison";
rev = "07485e85f0247518bc64ed0cc6fd6b39abe3d90d";
hash = "sha256-NQN4u6rBjw+zC7NuDUFg9LUuuvIR7Ed22UIs2jcZtkQ=";
};
installPhase = ''
mkdir -p $out
cp -r * $out
'';
};
zerforschen-plus-content = pkgs.stdenv.mkDerivation {
name = "zerforschen-plus-content";
@ -61,8 +78,8 @@
# Build phase - run Hugo to generate the site
buildPhase = ''
# Copy in theme before building website
mkdir -p themes/hugo-theme-m10c
cp -r ${hugo-theme-m10c}/* themes/hugo-theme-m10c/
mkdir -p themes/poison
cp -r ${hugo-theme-poison}/* themes/poison/
hugo
'';
@ -86,7 +103,7 @@
shellHook = ''
mkdir -p themes
ln -snf "${self.packages.${system}.hugo-theme-m10c}" themes/hugo-theme-m10c
ln -snf "${self.packages.${system}.hugo-theme-poison}" themes/poison
'';
};
}