fix notes
This commit is contained in:
@@ -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" },
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user