mirror of
https://github.com/rjNemo/orbital-orbit
synced 2026-06-10 11:06:39 +00:00
41 lines
838 B
Text
41 lines
838 B
Text
---
|
|
import BaseLayout from "./BaseLayout.astro";
|
|
const { frontmatter } = Astro.props;
|
|
---
|
|
|
|
<BaseLayout pageTitle={frontmatter.title}>
|
|
<p>Published on: {frontmatter.pubDate.toLocaleDateString()}</p>
|
|
<p><em>{frontmatter.description}</em></p>
|
|
<p>Written by: {frontmatter.author}</p>
|
|
<img src={frontmatter.image.url} alt={frontmatter.image.alt} width="500" />
|
|
<div class="tags">
|
|
{
|
|
frontmatter.tags.map((tag: any) => (
|
|
<p class="tag">
|
|
<a href={`/tags/${tag}`}>{tag}</a>
|
|
</p>
|
|
))
|
|
}
|
|
</div>
|
|
<slot />
|
|
</BaseLayout>
|
|
|
|
<style>
|
|
a {
|
|
color: #00539f;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tag {
|
|
margin: 0.25em;
|
|
border: dotted 1px #a1a1a1;
|
|
border-radius: 0.5em;
|
|
padding: 0.5em 1em;
|
|
font-size: 1.15em;
|
|
background-color: #f8fcfd;
|
|
}
|
|
</style>
|