From f1f937f80a6b220775511c7bcc77df297a79f2d5 Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Sun, 23 Jun 2024 11:54:36 +0200 Subject: [PATCH] feat(BaseHead, Layout): Add ViewTransitions component - Added import statement for `ViewTransitions` in `BaseHead.astro` and `Layout.astro` - Added `` component in the HTML structure of both files --- nodsoft_moltenobsidian_web/src/components/BaseHead.astro | 5 +++++ nodsoft_moltenobsidian_web/src/layouts/Layout.astro | 6 ++++-- .../vault/.obsidian/core-plugins.json | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nodsoft_moltenobsidian_web/src/components/BaseHead.astro b/nodsoft_moltenobsidian_web/src/components/BaseHead.astro index 14ad8b0..5851db2 100644 --- a/nodsoft_moltenobsidian_web/src/components/BaseHead.astro +++ b/nodsoft_moltenobsidian_web/src/components/BaseHead.astro @@ -1,4 +1,7 @@ --- +import { ViewTransitions } from 'astro:transitions'; + + // const canonicalURL = new URL(Astro.url.pathname, Astro.site); const defaultProps = { @@ -26,6 +29,8 @@ const base = import.meta.env.BASE_URL ?? "/"; + + diff --git a/nodsoft_moltenobsidian_web/src/layouts/Layout.astro b/nodsoft_moltenobsidian_web/src/layouts/Layout.astro index 56d605b..f2c1b4e 100644 --- a/nodsoft_moltenobsidian_web/src/layouts/Layout.astro +++ b/nodsoft_moltenobsidian_web/src/layouts/Layout.astro @@ -3,6 +3,8 @@ import "../styles/_global.scss" import BaseHead from "../components/BaseHead.astro"; import Sidebar from "../components/Sidebar.astro"; import { SITE_TITLE } from "../consts"; +import { ViewTransitions } from "astro:transitions"; + interface Props { title: string; @@ -15,7 +17,7 @@ const baseHeadTitle = title ? `${title} - ${SITE_TITLE}` : SITE_TITLE; --- - + @@ -24,7 +26,7 @@ const baseHeadTitle = title ? `${title} - ${SITE_TITLE}` : SITE_TITLE; -
+
diff --git a/nodsoft_moltenobsidian_web/vault/.obsidian/core-plugins.json b/nodsoft_moltenobsidian_web/vault/.obsidian/core-plugins.json index 9541e98..76057e9 100644 --- a/nodsoft_moltenobsidian_web/vault/.obsidian/core-plugins.json +++ b/nodsoft_moltenobsidian_web/vault/.obsidian/core-plugins.json @@ -7,7 +7,6 @@ "canvas", "outgoing-link", "tag-pane", - "properties", "page-preview", "daily-notes", "templates",