From 212f3940d2879c8035c1683835a9a1b963e4b7f4 Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Wed, 31 May 2023 21:03:02 -0500 Subject: [PATCH 1/2] Pared down version of page for embedding --- layouts/partials/footer.html | 83 ------------------------------------ layouts/partials/head.html | 23 ---------- layouts/partials/header.html | 60 -------------------------- layouts/partials/hero.html | 2 +- netlify.toml | 1 + 5 files changed, 2 insertions(+), 167 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 293b407428..e69de29bb2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,83 +0,0 @@ -{{ if and (ne .Section "docs") (ne .Section "documents") (not .Params.no_donate_footer) }} - -{{ end }} - -{{ if ne .Section "documents" }} - -{{ end }}{{/* if ne .Section "documents" */}} - -{{ $js := resources.Get "js/main.js" | fingerprint "sha512" }} - diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1e2d802e94..34e1e29c30 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,28 +3,5 @@ {{ if ne .Title .Site.Title }}{{ .Title }} - {{ end }} {{ .Site.Title }} - - - - - - - - - - {{ $style := resources.Get "css/main.scss" | resources.ToCSS | minify | fingerprint "sha512" }} - - - - {{ if .Params.canonicalUrl }} - - {{ else }} - - {{ end }} - {{ with .Site.Home.OutputFormats.Get "RSS" -}} - - {{ end }} - {{ if .Page.Params.do_not_index }} - {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ca4b90c62d..e69de29bb2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,60 +0,0 @@ -{{ if ne .Section "documents" }} - -
- {{ i18n "site_banner_text" }} -
-
-{{ end }}{{/* if ne .Section "documents" */}} diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index d206b48ce5..3cb6d97913 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -1,6 +1,6 @@ {{ if ne .Section "documents" }} {{ $bgImage := printf "images/%d.jpg" (.Param "top_graphic") | relURL }} -
+

{{ .Title }}

diff --git a/netlify.toml b/netlify.toml index 60b0ab30dd..337b82109f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -39,6 +39,7 @@ Permissions-Policy = """ Content-Security-Policy = """ default-src 'none'; font-src 'self'; + frame-ancestors 'self' https://isrg.formstack.com; style-src 'unsafe-inline' 'self'; script-src 'unsafe-eval' 'unsafe-inline' 'self' data: https://www.google-analytics.com From a8704af7a4bc741fb7efe55412359b8a9ac5511b Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Thu, 1 Jun 2023 09:08:47 -0500 Subject: [PATCH 2/2] add Source sans font --- layouts/partials/header.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29bb2..6cc56a01af 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,8 @@ + + + + \ No newline at end of file