From 7279e3dd82c0a94f93d9dd9908ec64244fd47ac0 Mon Sep 17 00:00:00 2001 From: Paul Sanduleac Date: Thu, 17 Oct 2019 17:03:16 -0500 Subject: [PATCH] Added conditional option for email subscription URL --- README.md | 6 +++++- _config.yml | 3 +++ _includes/footer.html | 2 +- _layouts/post.html | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 14b9830741..6981674994 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ bundle install ## Stackbit Deploy -This theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful. +This theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful. [![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/bencentra/centrarium) @@ -162,6 +162,10 @@ You can enable basic [Google Analytics][ga] pageview tracking by including your * __ga_tracking_id__: The Tracking ID for your website. You can find it on your Google Analytics dashboard. If the property is set, Google Analytics will be added to the footer of each page. +### Email subscription link + +If you'd like to link to an email subscription page alongside the default RSS link, you can include it in the configuration. + ### Social Settings Your personal social network settings are combined with the social sharing options. In the __social__ section of `_config.yml`, include an entry for each network you want to include. For example: diff --git a/_config.yml b/_config.yml index a3b67b152d..7558f6b16c 100644 --- a/_config.yml +++ b/_config.yml @@ -60,6 +60,9 @@ descriptions: - cat: dummy desc: "Just some placeholder posts, lorem ipsum and the rest." +# Email subscription link +emailfeedurl: http://example.com/emailfeed + # Social icons and sharing options # # Social settings are used in two places: diff --git a/_includes/footer.html b/_includes/footer.html index 4aa38f6332..50cb12db32 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -38,7 +38,7 @@
-

Subscribe via RSS

+

Subscribe via RSS{% if site.emailfeedurl %} or email{% endif %}

{{ site.description }}

diff --git a/_layouts/post.html b/_layouts/post.html index a6861f5b6c..2b3cdf3b25 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -42,7 +42,7 @@

{{ page.title }}

{% endif %}
-

Subscribe via RSS

+

Subscribe via RSS{% if site.emailfeedurl %} or email{% endif %}