This commit is contained in:
Michael Rose 2017-09-05 13:15:29 -04:00
commit 3bc7434e75
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/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
### Changed
- Change `gems` key in `_config.yml` to `plugins`. [#23](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/23)
### Added ### Added
### Changed ### Changed

View File

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

View File

@ -17,7 +17,7 @@
{% endif %} {% endif %}
<li> <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"> <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="icon icon--rss">{% include icon-rss.svg %}</span>
<span class="label">{{ site.data.theme.t.subscribe | default: 'Subscribe' }}</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> <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> </header>
<div class="entries"> <div class="entries">
{% if site.gems contains 'jekyll-paginate' and page.paginate %} {% if site.plugins contains 'jekyll-paginate' and page.paginate %}
{% comment %} {% comment %}
Add paginator.posts loop if jekyll-paginate plugin is enabled Add paginator.posts loop if jekyll-paginate plugin is enabled
and page.paginate == true 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 timezone: America/New_York # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Plugins # Plugins
gems: plugins:
- jekyll-feed - jekyll-feed
- jekyll-seo-tag - jekyll-seo-tag
- jekyll-sitemap - jekyll-sitemap

View File

@ -17,7 +17,7 @@
{% endif %} {% endif %}
<li> <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"> <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="icon icon--rss">{% include icon-rss.svg %}</span>
<span class="label">{{ site.data.theme.t.subscribe | default: 'Subscribe' }}</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> <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> </header>
<div class="entries"> <div class="entries">
{% if site.gems contains 'jekyll-paginate' and page.paginate %} {% if site.plugins contains 'jekyll-paginate' and page.paginate %}
{% comment %} {% comment %}
Add paginator.posts loop if jekyll-paginate plugin is enabled Add paginator.posts loop if jekyll-paginate plugin is enabled
and page.paginate == true and page.paginate == true

View File

@ -34,7 +34,7 @@ liquid:
# Build settings # Build settings
markdown: kramdown markdown: kramdown
theme: jekyll-theme-basically-basic theme: jekyll-theme-basically-basic
gems: plugins:
- jekyll-feed - jekyll-feed
- jekyll-seo-tag - jekyll-seo-tag
- jekyll-sitemap - jekyll-sitemap