From 8fdea9620b6bdedfcbd93a109ff5eba20482668a Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sat, 19 May 2018 09:42:32 +0000 Subject: Ensure compatibility with jekyll 3.0.1 --- _plugins/relativize_url.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_plugins/relativize_url.rb b/_plugins/relativize_url.rb index b7df362..d419032 100644 --- a/_plugins/relativize_url.rb +++ b/_plugins/relativize_url.rb @@ -1,5 +1,9 @@ require 'pathname' +def ensure_leading_slash(path) + path[0..0] == "/" ? path : "/#{path}" +end + module Jekyll module UrlRelativizer def relativize_url(input) -- cgit v1.1