Fix Document#title deprecation
This commit is contained in:
parent
af8b29d77d
commit
a63a231ab1
@ -31,7 +31,7 @@ class BidirectionalLinksGenerator < Jekyll::Generator
|
|||||||
graph_nodes << {
|
graph_nodes << {
|
||||||
id: note_id_from_note(current_note),
|
id: note_id_from_note(current_note),
|
||||||
path: current_note.url,
|
path: current_note.url,
|
||||||
label: current_note.title,
|
label: current_note.data['title'],
|
||||||
} unless current_note.path.include?('_notes/index.html')
|
} unless current_note.path.include?('_notes/index.html')
|
||||||
|
|
||||||
# Edges: Jekyll
|
# Edges: Jekyll
|
||||||
@ -53,6 +53,6 @@ class BidirectionalLinksGenerator < Jekyll::Generator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def note_id_from_note(note)
|
def note_id_from_note(note)
|
||||||
note.title.to_i(36).to_s
|
note.data['title'].to_i(36).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user