From bbf92dcdeaaf8bd8ab43fdd167f0709bb8840eb6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 2 Nov 2021 14:34:20 +0100 Subject: refactor(web/blog): Configurable blog name and footer Required for actually using this generically for the TVL blog. Change-Id: I92d8d10341f9ab4f92c90f7976be261b3255a0f0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3768 Tested-by: BuildkiteCI Reviewed-by: sterni --- users/tazjin/blog/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'users') diff --git a/users/tazjin/blog/default.nix b/users/tazjin/blog/default.nix index fd2f38839a73..c65b5cb50bf0 100644 --- a/users/tazjin/blog/default.nix +++ b/users/tazjin/blog/default.nix @@ -4,6 +4,20 @@ with depot.nix.yants; let inherit (builtins) hasAttr filter; + + blogConfig = { + name = "tazjin's blog"; + + footer = '' + +

ಠ_ಠ

+ ''; + }; + inherit (depot.web.blog) post includePost renderPost; posts = filter includePost (list post (import ./posts.nix)); @@ -12,7 +26,7 @@ let mkdir -p $out ${lib.concatStringsSep "\n" (map (post: - "cp ${renderPost post} $out/${post.key}.html" + "cp ${renderPost blogConfig post} $out/${post.key}.html" ) posts)} ''; -- cgit 1.4.1