From 136d24e9361df4acb43870b25cec40873812978e Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Wed, 29 Jan 2020 20:33:45 -0500 Subject: [PATCH] Switch to Hugos built in code highlighter --- layouts/_default/single.html | 8 ++++++-- layouts/partials/scripts.html | 4 ---- 2 files changed, 6 insertions(+), 6 deletions(-) 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 }} -