From 544ede9fa5b2d7c025e9dc375f970e15aa863906 Mon Sep 17 00:00:00 2001
From: Alex Chan
Date: Wed, 16 Oct 2024 08:21:23 +0100
Subject: [PATCH] Remember to add the new footer property to the front matter
schema
---
front-matter.json | 12 +++++++++++-
src/_includes/footer.html | 4 ++--
src/index.md | 2 +-
src/subscribe.md | 2 +-
4 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/front-matter.json b/front-matter.json
index 4f7236994..65d186e63 100644
--- a/front-matter.json
+++ b/front-matter.json
@@ -77,6 +77,16 @@
},
"additionalProperties": false
},
+ "footer": {
+ "type": "object",
+ "properties": {
+ "hide_newsletter": {
+ "description": "Whether to hide the newsletter subscribe from in the footer",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
"meta": {
"description": "Used on pages for miscellaneous information. Deprecated; should be replaced by purpose-named fields.",
"type": "array",
@@ -87,7 +97,7 @@
"nav_section": {
"description": "Which section of the site this page/post belongs to.",
"type": "string",
- "enum": ["articles", "til", "contact"]
+ "enum": ["articles", "til", "contact", "subscribe"]
},
"card_image": {
"description": "Complete path to an image that should be used in link previews on social media, e.g. Twitter cards or OpenGraph metadata.",
diff --git a/src/_includes/footer.html b/src/_includes/footer.html
index 9bb4290a7..f6c18ed0f 100644
--- a/src/_includes/footer.html
+++ b/src/_includes/footer.html
@@ -12,7 +12,7 @@
- {% if page.footer.exclude_newsletter %}
+ {% if page.footer.hide_newsletter %}
{% endif %}
- {% unless page.footer.exclude_newsletter %}
+ {% unless page.footer.hide_newsletter %}