From 5c30278d5775cc94f239ae7df99dfcb276965c14 Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:06:55 -0600 Subject: [PATCH 1/2] Opt-in Page --- content/en/opt-in.html | 16 ++++++++++++++++ layouts/_default/baseof.html | 4 +++- layouts/partials/footer.html | 6 ++++-- layouts/partials/newsletter-form.html | 1 + layouts/post/baseof.html | 18 +++++++----------- static/_additional-styles.css | 8 ++++++++ 6 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 content/en/opt-in.html create mode 100644 layouts/partials/newsletter-form.html diff --git a/content/en/opt-in.html b/content/en/opt-in.html new file mode 100644 index 00000000..32c63b11 --- /dev/null +++ b/content/en/opt-in.html @@ -0,0 +1,16 @@ +--- +title: Sign up for the ISRG Newsletter +slug: opt-in +date: 2024-11-19 +should_display_prominent_newsletter_form: true +--- + +
+
+
+

ISRG's monthly newsletter recaps what we're up to and shares recent security and privacy news that caught our attention.

+ +

By signing up for the Newsletter you agree to Let's Encrypt handling your information as described in our privacy policy.

+
+
+
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 661ff341..c0eea152 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,6 @@ - {{ partial "head.html" . }} {{ partial "header.html" . }} {{ if not .Params.nohero }}{{ partial "hero.html" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-top-context.html" . }}{{ end }} {{ end }} {{ block "main" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-bot-context.html" . }}{{ end }} {{ end }} {{ partial "footer.html" . }} + {{ partial "head.html" . }} {{ partial "header.html" . }} {{ if not .Params.nohero }}{{ partial "hero.html" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-top-context.html" . }}{{ end }} {{ end }} {{ block "main" . }}{{ end }} {{ if .Page.Params.should_display_prominent_newsletter_form }} +
{{ partial "newsletter-form" . }}
+ {{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-bot-context.html" . }}{{ end }} {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4bd9b653..a95e99aa 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,8 +24,10 @@
Read all about our nonprofit work this year in our 2023 Annual Report.
-
Subscribe for email updates about ISRG and our projects
- + {{ if not .Page.Params.should_display_prominent_newsletter_form }} +
Subscribe for email updates about ISRG and our projects
+ {{ partial "newsletter-form" . }} + {{ end }} diff --git a/layouts/partials/newsletter-form.html b/layouts/partials/newsletter-form.html new file mode 100644 index 00000000..8b593585 --- /dev/null +++ b/layouts/partials/newsletter-form.html @@ -0,0 +1 @@ + diff --git a/layouts/post/baseof.html b/layouts/post/baseof.html index 97580ca0..b0f84cdf 100644 --- a/layouts/post/baseof.html +++ b/layouts/post/baseof.html @@ -1,14 +1,10 @@ -{{ partial "head.html" . }} -{{ partial "header.html" . }} -{{ partial "hero.html" . }} -
-
-
- {{ block "main" . }}{{ end }} -
-
-
-{{ partial "footer.html" . }} + {{ partial "head.html" . }} {{ partial "header.html" . }} {{ partial "hero.html" . }} +
+
+
{{ block "main" . }}{{ end }} {{ if .Page.Params.should_display_prominent_newsletter_form }} {{ partial "newsletter-form" . }} {{ end }}
+
+
+ {{ partial "footer.html" . }} diff --git a/static/_additional-styles.css b/static/_additional-styles.css index 2b92ca82..7553299b 100644 --- a/static/_additional-styles.css +++ b/static/_additional-styles.css @@ -781,3 +781,11 @@ figure figcaption { color: #6c7686; margin-top: 10px; } + +.opt-in-container { + background: #c2e9e9; + padding-left: 10px !important; + margin-bottom: 50px; + border: 1px solid #ccc; + border-radius: 10px; +} From 7e6c13395dc4c00c34bc722796e6926a0f1f216f Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:10:22 -0600 Subject: [PATCH 2/2] Change date --- content/en/opt-in.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/opt-in.html b/content/en/opt-in.html index 32c63b11..fb02fcc6 100644 --- a/content/en/opt-in.html +++ b/content/en/opt-in.html @@ -1,7 +1,7 @@ --- title: Sign up for the ISRG Newsletter slug: opt-in -date: 2024-11-19 +date: 2024-11-18 should_display_prominent_newsletter_form: true ---