diff --git a/config.toml b/config.toml index e07593a..b6348b7 100644 --- a/config.toml +++ b/config.toml @@ -24,3 +24,7 @@ disableKinds = ["taxonomy","taxonomyTerm"] # build draft posts buildDrafts = true + +# allow inline html +[markup.goldmark.renderer] +unsafe= true \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 79d18bb..46a47fe 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@
{{ partial "fancymarkdown.html" .Content }}

Posts

- {{ range $i, $post := (where .Pages "Section" "posts").ByDate.Reverse }} + {{ range $i, $post := (where $.Site.Pages "Section" "posts").ByDate.Reverse }} {{ if .Params.draft }}{{ else }}

{{if .Params.htmlTitle}}{{.Params.htmlTitle | safeHTML}}{{else}}{{.Title}}{{end}}{{if .Params.subtitle }}: {{.Params.subtitle}} {{end}}

{{range .Params.Categories}}{{. | safeHTML}}{{end}}