aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-20 13:39:04 -0300
committerEuAndreh <eu@euandre.org>2021-01-20 13:39:04 -0300
commite4685312a6f7c5ea084a64fa59a1fde53bd6ce4d (patch)
tree95f018c215b82fdf5ee5b13166cc9160deeb5db9 /_plugins
parentAdd TIL on POSIX sh shebangs (diff)
downloadeuandre.org-e4685312a6f7c5ea084a64fa59a1fde53bd6ce4d.tar.gz
euandre.org-e4685312a6f7c5ea084a64fa59a1fde53bd6ce4d.tar.xz
_plugins/linter.rb: Allow single quotes on titles, slugify correctly
Diffstat (limited to '')
-rw-r--r--_plugins/linter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/_plugins/linter.rb b/_plugins/linter.rb
index 4972106..2bdac1a 100644
--- a/_plugins/linter.rb
+++ b/_plugins/linter.rb
@@ -28,6 +28,7 @@ module Jekyll
def slugify(s)
s.ljust(100)
+ .gsub(/[']/, '')
.gsub(/[\W]+/, ' ')
.strip
.gsub(/\s\s+/, '-')