diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:09:21 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:14:19 +0100 |
| commit | d3bafe7ce03e668e680655b9105badd80281f7f1 (patch) | |
| tree | 0685960c8165bd97aefa5a91ea559d72184c2a73 /src/layouts/Article.astro | |
| parent | a9f63d838b37e5819e8b52cde5f8d0472aee63aa (diff) | |
Defines Article layout
Diffstat (limited to 'src/layouts/Article.astro')
| -rw-r--r-- | src/layouts/Article.astro | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/layouts/Article.astro b/src/layouts/Article.astro new file mode 100644 index 0000000..253479b --- /dev/null +++ b/src/layouts/Article.astro @@ -0,0 +1,15 @@ +--- +import Layout from './Layout.astro'; + +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + +<Layout title={title}> + <article id="main"> + <slot /> + </article> +</Layout> |
