From ff37cd3cf65ef30d37851283188b14e445793cf8 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:52:09 -0600 Subject: [PATCH 1/6] Support Site Schema --- layouts/partials/head.html | 3 ++ layouts/partials/site_schema.html | 66 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 layouts/partials/site_schema.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 07938e188..8e0393d06 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,6 +39,9 @@ {{ template "_internal/opengraph.html" . }} + +{{ partial "site_schema.html" . }} + {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} diff --git a/layouts/partials/site_schema.html b/layouts/partials/site_schema.html new file mode 100644 index 000000000..3dec3af4f --- /dev/null +++ b/layouts/partials/site_schema.html @@ -0,0 +1,66 @@ +{{ if .IsHome -}} + +{{ else if .IsPage }} +{{ $author := or (.Params.author) (.Site.Author.name) }} +{{ $org_name := .Site.Title }} + +{{ end }} \ No newline at end of file From f2add6a3730626e9e794be52e343df8673369b60 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:53:00 -0600 Subject: [PATCH 2/6] Preconnect DNS for Analytics --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8e0393d06..c5129d953 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,6 +33,10 @@ + + + + {{ template "_internal/twitter_cards.html" . }} From 0b91f2863b0702012ddb16c7b335260c32041e6b Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:54:08 -0600 Subject: [PATCH 3/6] Switch to GA Lite For Improved Pagespeed --- layouts/partials/analytics.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 1720a8e62..67cc63e39 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,10 +1,9 @@ - + \ No newline at end of file From c7564bec28b79adde90948a8c434fd25468cfc35 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:54:49 -0600 Subject: [PATCH 4/6] Load JS Aync for Improved PageSpeed --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b972a4869..3927fa621 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -16,6 +16,6 @@ {{ $prism := resources.Get "js/prism.js" | js.Build }} {{ $theme := resources.Get "js/theme.js" | js.Build }} {{ $bundle := slice $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify }} - + {{- partial "extended_footer.html" . }} From 4c6e2538b048252b9cfa2e3babf7dd271e4301c1 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:57:55 -0600 Subject: [PATCH 5/6] Add Share Buttons --- layouts/_default/single.html | 2 ++ layouts/partials/share-buttons.html | 38 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 layouts/partials/share-buttons.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4691c0bce..769781257 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -43,6 +43,7 @@