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_profilewith 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-switchto yourpluginsin_config.yml.- Blog series support. Define a
series_slugheader in a series index post, addseriesheaders referring to the slug to series posts - Tags:
category_linkcreates a link to the page of the given categoryvideoinserts a HTML5 video player for the given filevimeoinserts a Vimeo player for the given URL
- Filters:
filesizereturns the size in bytes of the given filemastodon_urlreturns the Mastodon profile url of the given handle, e.g.@islandsvinur@mastodon.nlturns into https://mastodon.nl/@islandsvinurnormalize_whitespacereplaces all repeated whitespace into a single spacesonglinkcreates 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_datefield of the post - Added the ability to change the
<channel>element of the RSS feed, by overriding the_includes/rss/channel.htmlfile - Added the configuration option
site_repository_base_urlwhich is used to construct an ‘Edit this page’ footer text - Added the ability to translate certain strings, by overriding the
_data/i18n.yamlfile - 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.htmlto_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.htmland_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/imagefrom gemspec, shrinking the gem from 8 MB to 22 kB