Use Nix function to perform replacement

This commit is contained in:
2022-05-01 20:12:41 +00:00
parent 0f22123471
commit 1c0c7355c1
3 changed files with 8 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ cp -r $src/* .
# Hugo can't set baseUrl via CLI for multi-lingual hosts.
# We have to manually edit the configuration.
sed -i "$urlSub" config.toml
patchPhase
# Build site with Hugo
hugo $extraFlags