Initial release

This commit is contained in:
Maxime Vaillancourt
2020-05-19 22:59:37 -04:00
parent 117a1922d8
commit a110142f56
22 changed files with 845 additions and 18 deletions

View File

@@ -0,0 +1,15 @@
# frozen_string_literal: true
class BidirectionalLinksGenerator < Jekyll::Generator
def generate(site)
notes = site.collections['notes'].docs
notes.each do |current_note|
notes_linking_to_current_note = notes.filter do |e|
e.content.include?(current_note.url)
end
current_note.data['backlinks'] = notes_linking_to_current_note
end
end
end