From 7aec8a83e779ffe66db25d39756f8152ca0e9d0d Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Thu, 17 Aug 2023 21:43:24 +0200 Subject: [PATCH] added asciidoc support --- config.toml | 59 ++++++++++++++++++++++++++++------------------------- flake.nix | 5 ++++- 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/config.toml b/config.toml index a8a0dc0..2317d5c 100644 --- a/config.toml +++ b/config.toml @@ -1,36 +1,39 @@ -baseURL = 'https://krezzlu.gitlab.io/blog' +baseURL = 'https://blog.krsnik.at' languageCode = 'en-us' title = "Kristian's Blog" theme = 'nostyleplease' +[security.exec] +allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$'] + [markup] - [markup.goldmark] - [markup.goldmark.parser] - [markup.goldmark.parser.attribute] - block = true - title = true - [markup.highlight] - anchorLineNos = false - codeFences = true - guessSyntax = true - hl_Lines = '' - hl_inline = false - lineAnchors = '' - lineNoStart = 1 - lineNos = true - lineNumbersInTable = true - noClasses = true - noHl = false - style = 'rtt' - tabWidth = 4 - [markup.tableOfContents] - startLevel = 2 - endLevel = 3 - ordered = false +[markup.goldmark] +[markup.goldmark.parser] +[markup.goldmark.parser.attribute] +block = true +title = true +[markup.highlight] +anchorLineNos = false +codeFences = true +guessSyntax = true +hl_Lines = '' +hl_inline = false +lineAnchors = '' +lineNoStart = 1 +lineNos = true +lineNumbersInTable = true +noClasses = true +noHl = false +style = 'rtt' +tabWidth = 4 +[markup.tableOfContents] +startLevel = 2 +endLevel = 3 +ordered = false [params] - [params.theme_config] - appearance = "auto" - back_home_text = "$HOME" - date_format = "2006-01-02" +[params.theme_config] +appearance = "auto" +back_home_text = "$HOME" +date_format = "2006-01-02" diff --git a/flake.nix b/flake.nix index c3939f6..905cceb 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,9 @@ && (baseNameOf path == "themes" || baseNameOf path == "public"))) ./.; + # To add asciidoc support + nativeBuildInputs = [pkgs.asciidoctor]; + # Link theme to themes folder and build buildPhase = '' mkdir -p themes @@ -47,7 +50,7 @@ }; devShells.default = pkgs.mkShellNoCC { - packages = with pkgs; [hugo]; + packages = with pkgs; [hugo asciidoctor]; # Link theme to themes folder shellHook = '' mkdir -p themes