Update blog and use generated submodule configuration
This commit is contained in:
4
lib.nix
4
lib.nix
@@ -13,7 +13,7 @@ let
|
||||
in
|
||||
with settings.replaceUrl; "s/${regexEscape from}/${regexEscape to}/g";
|
||||
publicPath = settings.path;
|
||||
extraFlags = if settings.drafts then " -D " else "";
|
||||
extraFlags = (if settings.drafts then " -D " else "") + settings.extraFlags;
|
||||
builder = ./build/builder.sh;
|
||||
buildInputs = [
|
||||
hugo katex-html
|
||||
@@ -28,6 +28,7 @@ in
|
||||
drafts = settings.drafts or false;
|
||||
src = blog-source;
|
||||
path = ".";
|
||||
extraFlags = "--config=config.toml,config-gen.toml";
|
||||
replaceUrl = {
|
||||
from = "https://danilafe.com";
|
||||
to = wrapHost (settings.ssl or false) settings.host;
|
||||
@@ -39,6 +40,7 @@ in
|
||||
drafts = settings.drafts or false;
|
||||
src = blog-source-localized;
|
||||
path = "ru";
|
||||
extraFlags = "";
|
||||
replaceUrl = {
|
||||
from = "https://ru.danilafe.com";
|
||||
to = wrapHost (settings.ssl or false) settings.host;
|
||||
|
||||
Reference in New Issue
Block a user