diff --git a/layouts/partials/plugin/analytics.html b/layouts/partials/plugin/analytics.html index f1444168b..6ce802c79 100644 --- a/layouts/partials/plugin/analytics.html +++ b/layouts/partials/plugin/analytics.html @@ -49,4 +49,10 @@ {{- end -}} + + {{- /* Plausible Analytics */ -}} + {{- if $analytics.plausible.domain -}} + {{ $plausibleScript := $analytics.plausible.script | default "https://plausible.io/js/plausible.js" }} + + {{- end -}} {{- end -}} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 331d3b01a..097a7126e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -19,7 +19,7 @@ {{ $twitterImage := ""}} {{- with .Resources.GetMatch "featured-image" -}} {{- if lt 4095 .Width -}} -{{- $twitterImage = (.Resize "4095x q100").Permalink -}} +{{- $twitterImage = (.Resize "4095x q70").Permalink -}} {{- else -}} {{- $twitterImage = .Permalink -}} {{- end -}} @@ -80,6 +80,7 @@
{{ end }} + {{- $imageQuality := $params.ImageQuality | default "90" -}}
{{ if eq $pageTheme "hero" }} @@ -87,7 +88,7 @@ {{- $heroImage := "" -}} {{- with .Resources.GetMatch "featured-image" -}} {{- if lt 2000 .Width -}} - {{- $heroImage = (.Resize "2000x q100").Permalink -}} + {{- $heroImage = (.Resize (print "2000x q" $imageQuality)).Permalink -}} {{- else -}} {{- $heroImage = .Permalink -}} {{- end -}} @@ -158,7 +159,7 @@

{{ $.Title }}

{{- if eq $pageTheme "full" -}} {{- with $.Resources.GetMatch "featured-image" -}} {{- if lt 2000 .Width -}} - {{- $fullImage = (.Resize "2000x q100").Permalink -}} + {{- $fullImage = (.Resize (print "2000x q" $imageQuality)).Permalink -}} {{- else -}} {{- $fullImage = .Permalink -}} {{- end -}}