Update id generator function in Backlink Generator. Should now produce unique values in titles with Symbols

This commit is contained in:
Josh Rogers 2020-10-18 11:39:55 +01:00
parent eb979640c5
commit 42bd0003d3

View File

@ -66,6 +66,6 @@ class BidirectionalLinksGenerator < Jekyll::Generator
end end
def note_id_from_note(note) def note_id_from_note(note)
note.data['title'].to_i(36).to_s note.data['title'].gsub!(/\W+/, '').to_i(36).to_s
end end
end end