projects
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2221b6b
)
make sure we extract something sensible as slug from the readmes
author
Ralf Jung
<post@ralfj.de>
Thu, 8 Oct 2015 15:24:22 +0000
(17:24 +0200)
committer
Ralf Jung
<post@ralfj.de>
Thu, 8 Oct 2015 15:24:22 +0000
(17:24 +0200)
_plugins/readmes.rb
patch
|
blob
|
history
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]
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
if slug
self.data['slug'] = slug[1]
end