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 %}