From 5b93a1642d4b2d4edb29910a80d2b3356f184db0 Mon Sep 17 00:00:00 2001 From: wass Date: Fri, 16 Feb 2024 19:22:11 +0100 Subject: [PATCH] fix base and back sync with website --- integrations/create_menu.js | 2 +- src/components/markdown/directive/ImageDirective.astro | 3 +++ src/layout/client_nav_menu.js | 1 - src/pages/blog/[...url].astro | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/integrations/create_menu.js b/integrations/create_menu.js index b014744..1486779 100644 --- a/integrations/create_menu.js +++ b/integrations/create_menu.js @@ -39,7 +39,7 @@ async function get_section_menu(section,raw_menu){ path: entry.path, url: entry.url, url_type: entry.url_type, - link:`${config.base}/${section}/${entry.url}`, + link:(dir != ".")?`${config.base}/${entry.url}`:`${config.base}/${section}/${entry.url}`, level:content_entry_to_level(entry), format: entry.format, order: Object.hasOwn(entry,"order")?entry.order:100 diff --git a/src/components/markdown/directive/ImageDirective.astro b/src/components/markdown/directive/ImageDirective.astro index 114f6f6..d22d642 100644 --- a/src/components/markdown/directive/ImageDirective.astro +++ b/src/components/markdown/directive/ImageDirective.astro @@ -28,6 +28,9 @@ if(Object.hasOwn(node.attributes,"center")){ {alt}