diff options
Diffstat (limited to 'website/src/layouts/BlogPost.astro')
| -rw-r--r-- | website/src/layouts/BlogPost.astro | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/website/src/layouts/BlogPost.astro b/website/src/layouts/BlogPost.astro deleted file mode 100644 index 620bf81..0000000 --- a/website/src/layouts/BlogPost.astro +++ /dev/null @@ -1,51 +0,0 @@ ---- -import BaseHead from '../components/BaseHead.astro'; -import FormattedDate from '../components/FormattedDate.astro'; -import Navbar from '../components/Navbar.astro'; - -type Props = { - title: string; - description?: string; - updatedDate?: Date; - pubDate: Date; -} - -const { title, description, pubDate, updatedDate } = Astro.props; - -const canonicalUrl = new URL(Astro.url.pathname, Astro.site); ---- - -<html lang="en"> - <head> - <BaseHead title={`${title} | joeac’s blog`} description={description} /> - <link rel="stylesheet" href="/css/post.css"> - </head> - - <body> - <Navbar /> - <article class="h-entry"> - <aside> - <span> - This is a blog post by - <a class="p-author h-card" href="/">Joe Carstairs</a>. - </span> - { updatedDate - ? ( - <span>Updated: <FormattedDate date={updatedDate} className="dt-updated"/>.</span> - <span>Originally published: <FormattedDate date={pubDate} className="dt-published"/>.</span> - ) : <span>Published: <FormattedDate date={pubDate} className="dt-published"/>.</span> - } - <span hidden><a class="u-url uid" href={canonicalUrl}>Permalink</a></span> - </aside> - - <header> - <h1 class="h-name">{title}</h1> - <p class="p-summary" set:html={description} /> - </header> - - <section class="e-content"> - <slot /> - </section> - </article> - </body> -</html> |
