Release 0.7.1
Version 0.7.1 of jekyll-theme-switch has been released!
Add the gem to your Gemfile
:
gem 'jekyll-theme-switch'
Run bundle install
, then set the theme in your _config.yml
:
theme: jekyll-theme-switch
Release Notes
Added
- Added Mastodon profile link. Configure
mastodon_profile
with your handle, e.g.@islandsvinur@mastodon.nl
. Adds therel="me"
attribute, so your blog will get a green check mark on your Mastodon profile! - Added plugins to theme gem, now they actually work when you use the theme. Add
jekyll-theme-switch
to yourplugins
in_config.yml
.- Blog series support. Define a
series_slug
header in a series index post, addseries
headers referring to the slug to series posts - Tags:
category_link
creates a link to the page of the given categoryvideo
inserts a HTML5 video player for the given filevimeo
inserts a Vimeo player for the given URL
- Filters:
filesize
returns the size in bytes of the given filemastodon_url
returns the Mastodon profile url of the given handle, e.g.@islandsvinur@mastodon.nl
turns into https://mastodon.nl/@islandsvinurnormalize_whitespace
replaces all repeated whitespace into a single spacesonglink
creates a Songlink embed based on its Songlink
- Blog series support. Define a
- Added the date a post was modified to the post’s header, based on the
modified_date
field of the post - Added the ability to change the
<channel>
element of the RSS feed, by overriding the_includes/rss/channel.html
file - Added the configuration option
site_repository_base_url
which is used to construct an ‘Edit this page’ footer text - Added the ability to translate certain strings, by overriding the
_data/i18n.yaml
file - Added overridable post navigation in
_includes/post_nav.html
- Added full post contents in index, with shadow to hide the overflow
Changed
- Changed the homepage to a responsive Material Design card list
- Moved the
<head>
tag from_includes/head.html
to_layouts/default.html
, so uses can easily extend the head section - Changed tag and category index templates use the same template (overridable through
_includes/post_list.html
and_includes/post_item.html
) as the home page - Changed the homepage back to a normal Material Design card list
Fixed
- Fixed background of posts in dark mode
- Fixed an off-by-one error in printing month names
- Removed
assets/image
from gemspec, shrinking the gem from 8 MB to 22 kB