Add support for non-latin note titles

This commit is contained in:
Maxime Vaillancourt
2022-03-15 18:34:44 -04:00
parent 665735ed87
commit 7024decef4
3 changed files with 9 additions and 6 deletions

View File

@@ -104,11 +104,6 @@ class BidirectionalLinksGenerator < Jekyll::Generator
end
def note_id_from_note(note)
note.data['title']
.dup
.gsub(/\W+/, ' ')
.delete(' ')
.to_i(36)
.to_s
note.data['title'].bytes.join
end
end