@@ -24,28 +24,28 @@ def generate(site)
2424 # [[A note about cats|this is a link to the note about cats]]
2525 current_note . content = current_note . content . gsub (
2626 /\[ \[ #{ title_from_filename } \| (.+?)(?=\] )\] \] /i ,
27- "<a class='internal-link' href='#{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
27+ "<a class='internal-link' href='#{ site . baseurl } #{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
2828 )
2929
3030 # Replace double-bracketed links with label using note filename
3131 # [[cats|this is a link to the note about cats]]
3232 current_note . content = current_note . content . gsub (
3333 /\[ \[ #{ note_potentially_linked_to . data [ 'title' ] } \| (.+?)(?=\] )\] \] /i ,
34- "<a class='internal-link' href='#{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
34+ "<a class='internal-link' href='#{ site . baseurl } #{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
3535 )
3636
3737 # Replace double-bracketed links using note title
3838 # [[a note about cats]]
3939 current_note . content = current_note . content . gsub (
4040 /\[ \[ (#{ note_potentially_linked_to . data [ 'title' ] } )\] \] /i ,
41- "<a class='internal-link' href='#{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
41+ "<a class='internal-link' href='#{ site . baseurl } #{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
4242 )
4343
4444 # Replace double-bracketed links using note filename
4545 # [[cats]]
4646 current_note . content = current_note . content . gsub (
4747 /\[ \[ (#{ title_from_filename } )\] \] /i ,
48- "<a class='internal-link' href='#{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
48+ "<a class='internal-link' href='#{ site . baseurl } #{ note_potentially_linked_to . url } #{ link_extension } '>\\ 1</a>"
4949 )
5050 end
5151
@@ -73,7 +73,7 @@ def generate(site)
7373 # Nodes: Graph
7474 graph_nodes << {
7575 id : note_id_from_note ( current_note ) ,
76- path : "#{ current_note . url } #{ link_extension } " ,
76+ path : "#{ site . baseurl } #{ current_note . url } #{ link_extension } " ,
7777 label : current_note . data [ 'title' ] ,
7878 } unless current_note . path . include? ( '_notes/index.html' )
7979
0 commit comments