diff --git a/notes/notes.11tydata.js b/notes/notes.11tydata.js index a9029d4..cfe7bce 100644 --- a/notes/notes.11tydata.js +++ b/notes/notes.11tydata.js @@ -14,7 +14,7 @@ module.exports = { title: data => titleCase(data.title || data.page.fileSlug), backlinks: (data) => { const notes = data.collections.notes; - const currentFileSlug = data.page.fileSlug; + const currentFileSlug = data.page.filePathStem.replace('/notes/', ''); let backlinks = []; @@ -49,4 +49,4 @@ module.exports = { return backlinks; } } -} \ No newline at end of file +}