Skip to content

Instantly share code, notes, and snippets.

View richardp2's full-sized avatar

Richard Perry richardp2

View GitHub Profile
@richardp2
richardp2 / series.rb
Created February 20, 2017 09:09
Series List Tag
# Series List Tag
#
# The original plugin was created by R.J. Lorimer and is available here:
# https://github.com/realjenius/site-samples/blob/master/2012-11-04-jekyll-series-list-2/series_tag.rb
#
# The modifications include:
# - Using a data file (series.yml) to add more detail to the series
# - Modified the output of the tag to look the way I wanted it to
module Jekyll
@richardp2
richardp2 / Rakefile
Created February 20, 2017 09:08
Rakefile Site Deploy Script
# The following task was adapted from one written by Shane Burkhart
# Source: http://www.shaneburkhart.me/2013/12/07/rake-task-to-publish-drafts-in-jekyll.html
desc "Publish draft posts and update the date field"
task :publish, [:file] do |t, args|
require "time"
if args[:file]
file = "_drafts/#{args[:file]}"
text = File.read(file)
@richardp2
richardp2 / category_links.rb
Created February 20, 2017 09:06
Category Links Filter
@richardp2
richardp2 / flickr_photoset.rb
Created April 7, 2014 14:07
Flickr Photoset Tag Plugin for Jekyll
# Flickr Photoset Tag
#
# The original plugin was created by Jeremy Benoist and is available here:
# https://github.com/j0k3r/jekyll-flickr-photoset
#
# The modifications include:
# - a link to the original, full size image as well as the Flickr
# Page for each image in the set;
# - the ability to specifiy a class for the gallery list in the tag
# i.e. {% flickr_photoset 72157624158475427 small_gallery %}
@richardp2
richardp2 / flickr_image.rb
Created April 7, 2014 13:58
Flickr Image Tag Plugin for Jekyll
# Modified Flickr Image Tag Plugin
#
# The original plugin was created by Daniel Reszka and is available here:
# https://gist.github.com/danielres/3156265/
#
# The modifications include:
# - a link to the original, full size image as well as the Flickr Page for the image;
# - and the ability to specify an image class in the tag
# i.e. {% flickr_image 7614906062 alignright %}.