diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d0e49de..f83dfc9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,7 +9,7 @@

{{ .Title }}

{{ if isset .Params "date" }}

Posted

{{ end }} - {{ with .Resources.GetMatch "featuredImage" }} + {{ with .Resources.GetMatch "featuredImage" -}} {{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}} @@ -18,7 +18,11 @@ {{ . }} - {{ end }} + {{- end }} + {{ if .Params.toc -}} +

Contents

+ {{ .TableOfContents }} + {{- end }} {{ .Content }} {{ template "_internal/disqus.html" . }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index e02d6d9..24b44a0 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,9 +1,5 @@ - {{ $corejs := resources.Get "js/core.js" | minify }} -