From 875ef0a605c298e3033ef950119092d09e21f306 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 5 Nov 2021 14:19:06 +0100 Subject: fix(web/blog): make base URL configurable for atom feeds This was previously hardcoded to tazj.in, which is not going to work of course. Instead it now takes the blog config which has a new baseUrl parameter. For ease of use, the configs of my and the TVL blog have been moved into a location that is accessible in the tree for reuse. Change-Id: I94e71aaa7859db4380eb7013740a17f6b6a02620 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3777 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/blog/default.nix | 7 ++++--- users/tazjin/homepage/feed.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'users') diff --git a/users/tazjin/blog/default.nix b/users/tazjin/blog/default.nix index c65b5cb50b..6ac89e4665 100644 --- a/users/tazjin/blog/default.nix +++ b/users/tazjin/blog/default.nix @@ -5,8 +5,9 @@ with depot.nix.yants; let inherit (builtins) hasAttr filter; - blogConfig = { + config = { name = "tazjin's blog"; + baseUrl = "https://tazj.in/blog"; footer = ''