diff --git a/config/_default/params.toml b/config/_default/params.toml index b49fefa..2368c3d 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -3,6 +3,7 @@ usePageBundles = true description = "while (true) { bugs++; }" mainSections = ["posts"] fallBackOgImage = "images/broken-computer.svg" +numberOfFeaturedPosts = 5 # Comments comments = true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..02dc4a9 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,36 @@ + + + +
+ {{- partial "head.html" . -}} + + + +{{ .Params.description }}
{{ end }} - {{ if or (.Params.author) (.Params.date) }} -- {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} - {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} -
- {{ end }} - - {{ if and (.Params.toc) (gt .WordCount 400 ) (gt (len .TableOfContents) 180) (.TableOfContents) }} -{{ .Params.description }}
{{ end }} +{{ if or (.Params.author) (.Params.date) }} ++ {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} + {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} +
+{{ end }} + +{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }} +