diff --git a/content/en/opt-in.html b/content/en/opt-in.html new file mode 100644 index 00000000..fb02fcc6 --- /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-18 +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; +}