projects
/
web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make sure we extract something sensible as slug from the readmes
[web.git]
/
_plugins
/
readmes.rb
diff --git
a/_plugins/readmes.rb
b/_plugins/readmes.rb
index 82f917f18e1c32597d61849d113f33abb93da559..6b8c80e97616c3fabea86f700ffc2ce6269adbd3 100644
(file)
--- 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