From 8da4a628c71929943865c759b1bf74e500db8d70 Mon Sep 17 00:00:00 2001 From: Martin Wurm Date: Tue, 22 Oct 2024 22:21:24 +0200 Subject: [PATCH] add fediverse meta tag --- default.nix | 41 +++++++++++++++++-------------- layouts/partials/head/custom.html | 1 + 2 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 layouts/partials/head/custom.html diff --git a/default.nix b/default.nix index d89991b..b3408b6 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,8 @@ -{pkgs ? import {}}: -with pkgs; let +{ + pkgs ? import { }, +}: +with pkgs; +let vendoredDeps = stdenv.mkDerivation rec { name = "hugoVendoredDeps"; @@ -25,24 +28,24 @@ with pkgs; let outputHash = "sha256-8dsJlVvCHUE/rI9YkuJVF+Nk2DeUIAiNLR4Fu/YZg50="; }; in - stdenv.mkDerivation rec { - name = "mart-w.de-${version}"; - version = "1.0.1"; +stdenv.mkDerivation rec { + name = "mart-w.de-${version}"; + version = "1.1"; - src = ./.; + src = ./.; - nativeBuildInputs = [ - go - hugo - ]; + nativeBuildInputs = [ + go + hugo + ]; - buildPhase = '' - ln -s ${vendoredDeps} _vendor - hugo - ''; + buildPhase = '' + ln -s ${vendoredDeps} _vendor + hugo + ''; - installPhase = '' - mkdir -p $out - cp -r ./public/* $out - ''; - } + installPhase = '' + mkdir -p $out + cp -r ./public/* $out + ''; +} diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html new file mode 100644 index 0000000..2f17c70 --- /dev/null +++ b/layouts/partials/head/custom.html @@ -0,0 +1 @@ +