Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds conditional option for email subscription URL #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3 class="footer-heading">{{ site.title }}</h3>
</div>

<div class="site-signature">
<p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p>
<p class="rss-subscribe text"><strong>Subscribe via <a href="{{ "/feed.xml" | prepend: site.baseurl }}">RSS</a>{% if site.emailfeedurl %} or <a href="{{ site.emailfeedurl }}">email</a>{% endif %}</strong></p>
<p class="text">{{ site.description }}</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1 class="title">{{ page.title }}</h1>
{% endif %}

<section class="rss">
<p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p>
<p class="rss-subscribe text"><strong>Subscribe via <a href="{{ "/feed.xml" | prepend: site.baseurl }}">RSS</a>{% if site.emailfeedurl %} or <a href="{{ site.emailfeedurl }}">email</a>{% endif %}</strong></p>
</section>

<section class="share">
Expand Down