diff options
Diffstat (limited to 'examples/starlog/src/layouts/PostLayout.astro')
-rw-r--r-- | examples/starlog/src/layouts/PostLayout.astro | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/starlog/src/layouts/PostLayout.astro b/examples/starlog/src/layouts/PostLayout.astro new file mode 100644 index 000000000..9c87a7b88 --- /dev/null +++ b/examples/starlog/src/layouts/PostLayout.astro @@ -0,0 +1,39 @@ +--- +import type { CollectionEntry } from 'astro:content'; +import BaseHead from '../components/BaseHead.astro'; +import FormattedDate from '../components/FormattedDate.astro'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; + +type Props = { + release: CollectionEntry<'releases'>; +}; + +const { release } = Astro.props; +--- + +<!doctype html> +<html lang="en"> + <head> + <BaseHead + title={release.data.title} + description={release.data.description} + image={release.data.image} + /> + </head><body> + <div class="glow"></div> + <Header /> + <div class="post single" transition:persist transition:name="post"> + <div class="version_wrapper"> + <div class="version_info"> + <div class="version_number">{release.data.versionNumber}</div> + <FormattedDate class="date" date={release.data.date} /> + </div> + </div> + <div class="content"> + <slot /> + </div> + </div> + <Footer /> + </body> +</html> |