diff --git a/layouts/_partials/assets.html b/layouts/_partials/assets.html index db962818..547abf9e 100644 --- a/layouts/_partials/assets.html +++ b/layouts/_partials/assets.html @@ -324,7 +324,7 @@ FixIt theme assets partial {{- $configJS = add $configJS "console.log('Page config:', window.config);" -}} {{- end -}} {{- $targetPath := $noBaseRelPermalink | printf "%s/config/page.js" -}} -{{- if (path.Ext .Page.RelPermalink) -}} +{{- if (path.Ext .Page.RelPermalink) | or .IsHome -}} {{- $targetPath = "" -}} {{- end -}} {{- dict "Content" $configJS "Path" $targetPath "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}} @@ -332,7 +332,7 @@ FixIt theme assets partial {{- /* MathJax plugin */ -}} {{- if .Store.Get "hasMathJax" -}} {{- $targetPath := $noBaseRelPermalink | printf "%s/mathjax.min.js" -}} - {{- if (path.Ext .Page.RelPermalink) -}} + {{- if (path.Ext .Page.RelPermalink) | or .IsHome -}} {{- $targetPath = "" -}} {{- end -}} {{- $options := dict "targetPath" $targetPath "minify" hugo.IsProduction -}} diff --git a/layouts/_partials/feed/rss.html b/layouts/_partials/feed/rss.html index d55e27f7..7daa15c1 100644 --- a/layouts/_partials/feed/rss.html +++ b/layouts/_partials/feed/rss.html @@ -57,6 +57,8 @@ {{- $content := dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" }} {{- /* {{- $content | replaceRE `]*>.*` "" | replaceRE `]*( /)?>` "" | safeHTML -}} */ -}} + {{- /* Hide line number column of code block */ -}} + {{- $content = $content | replaceRE `(]*>.*?