diff --git a/_config.yml b/_config.yml index d8dbcc5..7fb0e56 100644 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ exclude: ['_includes/notes_graph.json'] # You may need to change the base URL depending on your deploy configuration. # Specifically, when using GitHub Pages, the baseurl should point to where GitHub # Pages deploys your repository (which is usually the repository name). -baseurl: / +baseurl: '' # If you are using a host that cannot resolve URLs that do # not end with .html (such as Neocities), set this to 'true'. diff --git a/_includes/head.html b/_includes/head.html index b287efa..721ce71 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -11,7 +11,7 @@ - + {% if page.excerpt %} diff --git a/_includes/nav.html b/_includes/nav.html index 5ed31df..4f638f9 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,3 +1,3 @@
- {{ site.title }} + {{ site.title }}
diff --git a/_layouts/note.html b/_layouts/note.html index 0edb519..f77b95a 100644 --- a/_layouts/note.html +++ b/_layouts/note.html @@ -22,7 +22,7 @@ layout: default
{% for backlink in page.backlinks %} {% endfor %} diff --git a/_plugins/bidirectional_links_generator.rb b/_plugins/bidirectional_links_generator.rb index 1efa1eb..90fe62a 100644 --- a/_plugins/bidirectional_links_generator.rb +++ b/_plugins/bidirectional_links_generator.rb @@ -24,28 +24,28 @@ class BidirectionalLinksGenerator < Jekyll::Generator # [[A note about cats|this is a link to the note about cats]] current_note.content = current_note.content.gsub( /\[\[#{title_from_filename}\|(.+?)(?=\])\]\]/i, - "\\1" + "\\1" ) # Replace double-bracketed links with label using note filename # [[cats|this is a link to the note about cats]] current_note.content = current_note.content.gsub( /\[\[#{note_potentially_linked_to.data['title']}\|(.+?)(?=\])\]\]/i, - "\\1" + "\\1" ) # Replace double-bracketed links using note title # [[a note about cats]] current_note.content = current_note.content.gsub( /\[\[(#{note_potentially_linked_to.data['title']})\]\]/i, - "\\1" + "\\1" ) # Replace double-bracketed links using note filename # [[cats]] current_note.content = current_note.content.gsub( /\[\[(#{title_from_filename})\]\]/i, - "\\1" + "\\1" ) end @@ -73,7 +73,7 @@ class BidirectionalLinksGenerator < Jekyll::Generator # Nodes: Graph graph_nodes << { id: note_id_from_note(current_note), - path: "#{current_note.url}#{link_extension}", + path: "#{site.baseurl}#{current_note.url}#{link_extension}", label: current_note.data['title'], } unless current_note.path.include?('_notes/index.html')