Merge pull request #15 from joshfrogers/master

Update id generator function in Backlink Generator. Should now produc…
This commit is contained in:
Maxime Vaillancourt
2020-10-18 18:04:29 +00:00
committed by GitHub

View File

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