diff options
| -rw-r--r-- | wikilinks.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wikilinks.rb b/wikilinks.rb index 7b13c61..e8f9cad 100644 --- a/wikilinks.rb +++ b/wikilinks.rb @@ -17,8 +17,8 @@ module Jekyll def title if @title.nil? - if not @match.nil? && @match.data.has?('title') - @match.data['title'] + if not @match.nil? + match_title else @name end @@ -26,6 +26,12 @@ module Jekyll @title end end + + def match_title + if not @match.data.nil? and @match.data.include? 'title' + @match.data['title'] + end + end def url @match.url |
