From 53146887486e98a41ea1b658f1346723acabef6d Mon Sep 17 00:00:00 2001 From: Alvaro Costa Neto Date: Sat, 11 Apr 2020 21:43:55 -0300 Subject: [PATCH] Added the "slug_mode" option to URL generation. --- lib/jekyll-archives/archive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-archives/archive.rb b/lib/jekyll-archives/archive.rb index 387efd8..5893609 100644 --- a/lib/jekyll-archives/archive.rb +++ b/lib/jekyll-archives/archive.rb @@ -33,7 +33,7 @@ def initialize(site, title, type, posts) # Generate slug if tag or category # (taken from jekyll/jekyll/features/support/env.rb) - @slug = Utils.slugify(title) if title.is_a? String + @slug = Utils.slugify(title, mode: @config["slug_mode"]) if title.is_a? String # Use ".html" for file extension and url for path @ext = File.extname(relative_path)