fix notes

This commit is contained in:
2026-01-13 13:11:25 +00:00
parent ef53f0bea2
commit 5b0b932c3c
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import Markdown from "@/components/quick/Markdown.vue";
const site_links = [ const site_links = [
{ name: "CV", link: "/cv" }, { name: "CV", link: "/cv" },
{ name: "Bookmarks", link: "/bookmarks" }, { name: "Bookmarks", link: "/bookmarks" },
{ name: "Notes", link: "/notes" }, { name: "Notes", link: "/notes/Index.md" },
{ name: "Admin", link: "/admin" }, { name: "Admin", link: "/admin" },
{ name: "Shrines", link: "/shrines" }, { name: "Shrines", link: "/shrines" },
]; ];

View File

@@ -11,7 +11,8 @@ const last_edited = ref(null);
// if the address is https://www.adam-french.co.uk/notes/PATH // if the address is https://www.adam-french.co.uk/notes/PATH
// request from https://www.adam-french.co.uk/api/notes/PATH // request from https://www.adam-french.co.uk/api/notes/PATH
const route = useRoute(); const route = useRoute();
const path = route.params.path; const pathArray = route.params.path;
const path = Array.isArray(pathArray) ? pathArray.join("/") : pathArray;
const url = `/api/notes/${path}`; const url = `/api/notes/${path}`;
function getFilename(headers) { function getFilename(headers) {