diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 6982f05..b9e5f21 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -20,26 +20,27 @@
{{ if .TableOfContents }} - {{ $headers := findRE "(.|\n])+?" .Content }} - - {{ if ge (len $headers) 4 }} -
- {{ .TableOfContents }} -
- {{ end }} - {{ end }} - {{ .Content }} + {{ $headers := findRE "(.|\n)*?" .Content }} + + {{ if ge (len $headers) 4 }} +
+ {{ .TableOfContents }} +
+ {{ end }} + {{ end }} + + {{ .Content }} -
- {{ if .Params.Sources }} -

Sources

-
    - {{ range $i, $e := .Params.Sources }} -
  • {{ markdownify $e }}
  • - {{ end }} -
+
+ {{ if .Params.Sources }} +

Sources

+
    + {{ range $i, $e := .Params.Sources }} +
  • {{ markdownify $e }}
  • {{ end }} -
+ + {{ end }} +
{{ end }}