@@ -24,28 +24,28 @@ def generate(site)
24
24
# [[A note about cats|this is a link to the note about cats]]
25
25
current_note . content = current_note . content . gsub (
26
26
/\[ \[ #{ 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>"
28
28
)
29
29
30
30
# Replace double-bracketed links with label using note filename
31
31
# [[cats|this is a link to the note about cats]]
32
32
current_note . content = current_note . content . gsub (
33
33
/\[ \[ #{ 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>"
35
35
)
36
36
37
37
# Replace double-bracketed links using note title
38
38
# [[a note about cats]]
39
39
current_note . content = current_note . content . gsub (
40
40
/\[ \[ (#{ 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>"
42
42
)
43
43
44
44
# Replace double-bracketed links using note filename
45
45
# [[cats]]
46
46
current_note . content = current_note . content . gsub (
47
47
/\[ \[ (#{ 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>"
49
49
)
50
50
end
51
51
@@ -73,7 +73,7 @@ def generate(site)
73
73
# Nodes: Graph
74
74
graph_nodes << {
75
75
id : note_id_from_note ( current_note ) ,
76
- path : "#{ current_note . url } #{ link_extension } " ,
76
+ path : "#{ site . baseurl } #{ current_note . url } #{ link_extension } " ,
77
77
label : current_note . data [ 'title' ] ,
78
78
} unless current_note . path . include? ( '_notes/index.html' )
79
79
0 commit comments