diff --git a/src/component/core/head.astro b/src/component/core/head.astro new file mode 100644 index 0000000..9ee8080 --- /dev/null +++ b/src/component/core/head.astro @@ -0,0 +1,15 @@ +--- + +const { + title +} = Astro.props + +--- + + + + + + + {title} + diff --git a/src/component/core/layout.astro b/src/component/core/layout.astro new file mode 100644 index 0000000..3b4bab9 --- /dev/null +++ b/src/component/core/layout.astro @@ -0,0 +1,18 @@ +--- +import Head from "./head.astro"; + +const { + title = "Memento" +} = Astro.props + +--- + + + + + + + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 7072961..0ba52dc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,5 +1,6 @@ --- import "../styles/global.css" +import Layout from "../component/core/layout.astro" --- - - - - - - - Astro - - -

Astro

+ +

Astro

Hello World!

Some initial bold text

@@ -69,5 +62,4 @@ import "../styles/global.css"
- - + \ No newline at end of file