added asciidoc support
This commit is contained in:
parent
a432bbfcf4
commit
7aec8a83e7
59
config.toml
59
config.toml
@ -1,36 +1,39 @@
|
|||||||
baseURL = 'https://krezzlu.gitlab.io/blog'
|
baseURL = 'https://blog.krsnik.at'
|
||||||
languageCode = 'en-us'
|
languageCode = 'en-us'
|
||||||
title = "Kristian's Blog"
|
title = "Kristian's Blog"
|
||||||
|
|
||||||
theme = 'nostyleplease'
|
theme = 'nostyleplease'
|
||||||
|
|
||||||
|
[security.exec]
|
||||||
|
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
[markup.goldmark]
|
[markup.goldmark]
|
||||||
[markup.goldmark.parser]
|
[markup.goldmark.parser]
|
||||||
[markup.goldmark.parser.attribute]
|
[markup.goldmark.parser.attribute]
|
||||||
block = true
|
block = true
|
||||||
title = true
|
title = true
|
||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
anchorLineNos = false
|
anchorLineNos = false
|
||||||
codeFences = true
|
codeFences = true
|
||||||
guessSyntax = true
|
guessSyntax = true
|
||||||
hl_Lines = ''
|
hl_Lines = ''
|
||||||
hl_inline = false
|
hl_inline = false
|
||||||
lineAnchors = ''
|
lineAnchors = ''
|
||||||
lineNoStart = 1
|
lineNoStart = 1
|
||||||
lineNos = true
|
lineNos = true
|
||||||
lineNumbersInTable = true
|
lineNumbersInTable = true
|
||||||
noClasses = true
|
noClasses = true
|
||||||
noHl = false
|
noHl = false
|
||||||
style = 'rtt'
|
style = 'rtt'
|
||||||
tabWidth = 4
|
tabWidth = 4
|
||||||
[markup.tableOfContents]
|
[markup.tableOfContents]
|
||||||
startLevel = 2
|
startLevel = 2
|
||||||
endLevel = 3
|
endLevel = 3
|
||||||
ordered = false
|
ordered = false
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
[params.theme_config]
|
[params.theme_config]
|
||||||
appearance = "auto"
|
appearance = "auto"
|
||||||
back_home_text = "$HOME"
|
back_home_text = "$HOME"
|
||||||
date_format = "2006-01-02"
|
date_format = "2006-01-02"
|
||||||
|
@ -34,6 +34,9 @@
|
|||||||
&& (baseNameOf path == "themes" || baseNameOf path == "public")))
|
&& (baseNameOf path == "themes" || baseNameOf path == "public")))
|
||||||
./.;
|
./.;
|
||||||
|
|
||||||
|
# To add asciidoc support
|
||||||
|
nativeBuildInputs = [pkgs.asciidoctor];
|
||||||
|
|
||||||
# Link theme to themes folder and build
|
# Link theme to themes folder and build
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mkdir -p themes
|
mkdir -p themes
|
||||||
@ -47,7 +50,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShellNoCC {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
packages = with pkgs; [hugo];
|
packages = with pkgs; [hugo asciidoctor];
|
||||||
# Link theme to themes folder
|
# Link theme to themes folder
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
mkdir -p themes
|
mkdir -p themes
|
||||||
|
Loading…
Reference in New Issue
Block a user