From 28de6b028ff4a365bd802d4af9fcba76eb154c0e Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 8 Oct 2015 17:24:22 +0200 Subject: [PATCH 1/1] make sure we extract something sensible as slug from the readmes --- _plugins/readmes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/readmes.rb b/_plugins/readmes.rb index 82f917f..6b8c80e 100644 --- a/_plugins/readmes.rb +++ b/_plugins/readmes.rb @@ -14,7 +14,7 @@ module Jekyll self.data['layout'] = 'default' self.data['title'] = content[0].match(/^#* ?(.*)\n$/)[1] - slug = self.data['title'].match(/^(.*):.*$/) + slug = self.data['title'].match(/^([^:]*):.*$/) if slug self.data['slug'] = slug[1] end -- 2.30.2