diff --git a/config/_default/markup.toml b/config/_default/markup.toml index ae478b0..a2880f1 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -15,3 +15,7 @@ noClasses = false # style = "monokai" tabWidth = 2 +[tableOfContents] + endlevel = 6 + ordered = false + startLevel = 3 diff --git a/config/_default/params.toml b/config/_default/params.toml index 0058465..818aa8f 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -81,6 +81,7 @@ iconsDir = "images/icons/" # without a leading forward slash # Show related content at the end of an article based on the 'series' taxonomy. Can be set in post front matter. # showRelatedInArticle = false # showRelatedInSidebar = false +toc = true # website author [author] diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9ecfe43 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,54 @@ +{{- define "main" }} +{{- $s := .Site.Params }} +{{- $p := .Params }} +{{- $scratch := newScratch }} +{{- if isset $p "image" }} + {{- $scratch.Set "image" $p.image }} +{{- else }} + {{ $scratch.Set "image" $s.fallBackOgImage }} +{{- end }} +{{- $image := $scratch.Get "image" }} +{{- $bg := absLangURL (path.Join "images" $image) }} +