diff --git a/README.md b/README.md index f75e01c..834a397 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -> [!NOTE] -> This project moved to [SourceHut](https://git.sr.ht/~ayoayco/astro-resume). - # Astro Resume [![Package information: NPM version](https://img.shields.io/npm/v/@ayco/astro-resume)](https://www.npmjs.com/package/@ayco/astro-resume) @@ -106,6 +103,7 @@ If you have shared data that needs to be initialized from the server and accesse In this example, an appConfig object is built and serialized in index.astro and accessed in child Astro components. In index.astro: + ```astro import Serialize from "@ayco/astro-resume"; @@ -120,6 +118,7 @@ export type AppConfig = typeof appConfig; ``` In Child.astro: + ```astro

I'm a child. I have access to the appConfig in index!

@@ -133,6 +132,7 @@ const data = deserialize('app-config'); ``` In GrandChild.astro: + ```astro

I'm a grand child. I also have access to the appConfig in index!

\ No newline at end of file +