Revert "Stop replacing dashes in link generator"
This reverts commit 8544fd4f36d4d46290b3090c68fb39df87393e00.
This commit is contained in:
parent
8544fd4f36
commit
c421400ae9
@ -18,7 +18,7 @@ class BidirectionalLinksGenerator < Jekyll::Generator
|
||||
title_from_filename = File.basename(
|
||||
note_potentially_linked_to.basename,
|
||||
File.extname(note_potentially_linked_to.basename)
|
||||
).gsub('_', ' ').capitalize
|
||||
).gsub('_', ' ').gsub('-', ' ').capitalize
|
||||
|
||||
new_href = "#{site.baseurl}#{note_potentially_linked_to.url}#{link_extension}"
|
||||
anchor_tag = "<a class='internal-link' href='#{new_href}'>\\1</a>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user