diff --git a/README.md b/README.md index c1077aa..91a61d3 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ So later on, I saw some cases where it's been using the pattern `#* -> src/*` ( ## Astro +- [[YouTube] Astro in 100 Seconds | Fireship](https://www.youtube.com/watch?v=dsTXcSeAZq8) ( 2021-07-15 ) + - [Astro Docs](https://docs.astro.build/en/getting-started/) - [Install and set up Astro](https://docs.astro.build/en/install-and-setup/) @@ -30,6 +32,12 @@ So later on, I saw some cases where it's been using the pattern `#* -> src/*` ( - [Configuring Markdown and MDX](https://docs.astro.build/en/guides/markdown-content/#configuring-markdown-and-mdx) + - [View Transitions | Astro Docs](https://docs.astro.build/en/guides/view-transitions/) + + - [astro:after-swap](https://docs.astro.build/en/guides/view-transitions/#astroafter-swap) + + - [Astro View Transitions | Chrome for Developers](https://developer.chrome.com/blog/astro-view-transitions?hl=en) - [live](https://live-transitions.pages.dev/), [source code](https://github.com/Charca/view-transitions-live) + - [Deploy your Astro Site to GitHub Pages | Astro Docs](https://docs.astro.build/en/guides/deploy/github/) - [[GitHub] withastro/github-pages](https://github.com/withastro/github-pages) - Automatically deploy an Astro site to GitHub Pages diff --git a/src/layouts/main.astro b/src/layouts/main.astro index c04750c..253ac9e 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -2,6 +2,9 @@ // Full Astro Component Syntax: // https://docs.astro.build/basics/astro-components/ +// https://docs.astro.build/en/reference/api-reference/#viewtransitions- +import { ViewTransitions } from 'astro:transitions'; + import redefineUrl from '#utils/redefineUrl'; interface IContent { @@ -35,6 +38,7 @@ const styleFragment = `