Revert back `plugins: ` and update references to `site.gems` with `site.plugins`

- Conditionals that determine if jekyll-paginate and jekyll-feed are active weren't working due `gems` key change in Jekyll 3.5

ref #24
This commit is contained in:
Michael Rose 2017-08-08 20:36:05 -04:00
parent 428b2b0310
commit 1c571dbf6c
9 changed files with 16 additions and 14 deletions

View File

@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Changed
- Change `gems` key in `_config.yml` to `plugins`. [#23](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/23)
## [1.1.0] - 2017-03-30
### Added

View File

@ -30,7 +30,7 @@ logo: # path of site logo, e.g. "/assets/images/logo.png"
# Build settings
markdown: kramdown
theme: jekyll-theme-basically-basic
gems:
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap

View File

@ -17,7 +17,7 @@
{% endif %}
<li>
{% if site.gems contains 'jekyll-feed' %}
{% if site.plugins contains 'jekyll-feed' %}
<a href="{{ site.feed.path | default: 'feed.xml' | relative_url }}" title="Atom Feed">
<span class="icon icon--rss">{% include icon-rss.svg %}</span>
<span class="label">{{ site.data.theme.t.subscribe | default: 'Subscribe' }}</span>

View File

@ -13,7 +13,7 @@ layout: default
<h2>{{ site.data.theme.t.posts | default: 'Posts' }}{% if paginator.page > 1 %}{{ site.data.theme.t.page | default: 'Page' | prepend: ' - ' | append: ' ' }}{{ paginator.page }} {{ site.data.theme.t.of | default: 'of' }} {{ paginator.total_pages }}{% endif %}</h2>
</header>
<div class="entries">
{% if site.gems contains 'jekyll-paginate' and page.paginate %}
{% if site.plugins contains 'jekyll-paginate' and page.paginate %}
{% comment %}
Add paginator.posts loop if jekyll-paginate plugin is enabled
and page.paginate == true

View File

@ -51,7 +51,7 @@ permalink: /:categories/:title/
timezone: America/New_York # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Plugins
gems:
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap

View File

@ -17,7 +17,7 @@
{% endif %}
<li>
{% if site.gems contains 'jekyll-feed' %}
{% if site.plugins contains 'jekyll-feed' %}
<a href="{{ site.feed.path | default: 'feed.xml' | relative_url }}" title="Atom Feed">
<span class="icon icon--rss">{% include icon-rss.svg %}</span>
<span class="label">{{ site.data.theme.t.subscribe | default: 'Subscribe' }}</span>

View File

@ -13,7 +13,7 @@ layout: default
<h2>{{ site.data.theme.t.posts | default: 'Posts' }}{% if paginator.page > 1 %}{{ site.data.theme.t.page | default: 'Page' | prepend: ' - ' | append: ' ' }}{{ paginator.page }} {{ site.data.theme.t.of | default: 'of' }} {{ paginator.total_pages }}{% endif %}</h2>
</header>
<div class="entries">
{% if site.gems contains 'jekyll-paginate' and page.paginate %}
{% if site.plugins contains 'jekyll-paginate' and page.paginate %}
{% comment %}
Add paginator.posts loop if jekyll-paginate plugin is enabled
and page.paginate == true

View File

@ -30,7 +30,7 @@ logo: /assets/icons/basically-basic-logo-light.svg
# Build settings
markdown: kramdown
theme: jekyll-theme-basically-basic
gems:
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap