araozu.dev/src/layouts/BlogLayout.astro

90 lines
3.3 KiB
Plaintext
Raw Normal View History

2024-05-20 22:47:25 +00:00
---
2024-08-15 16:24:02 +00:00
import NavigationLayout from "./NavigationLayout.astro";
2024-07-15 14:17:35 +00:00
let { frontmatter, lang } = Astro.props;
lang = lang ?? "en";
2024-05-20 22:47:25 +00:00
---
<!doctype html>
2024-08-19 22:16:08 +00:00
<html lang={lang}>
2024-05-17 23:53:35 +00:00
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<link rel="stylesheet" href="/global.css" />
2024-05-20 22:47:25 +00:00
<link rel="stylesheet" href="/blog.css" />
<title>Blog - Fernando Araoz</title>
2024-05-17 23:53:35 +00:00
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
2024-07-15 14:05:28 +00:00
href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap"
2024-05-17 23:53:35 +00:00
rel="stylesheet"
/>
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css"
/>
2024-07-15 14:05:28 +00:00
<script src="//unpkg.com/alpinejs" is:inline defer></script>
2024-05-17 23:53:35 +00:00
</head>
2024-05-21 01:05:51 +00:00
<body>
2024-08-15 16:24:02 +00:00
<NavigationLayout>
<div id="blog" class="container mx-auto max-w-[1000px]" style="font-size: 18px">
2024-07-15 14:05:28 +00:00
<div class="py-6">
{
frontmatter?.title && (
<h1 class="font-etoile text-center text-4xl py-2">
{frontmatter.title}
</h1>
)
}
{
frontmatter?.pubDate && (
<p class="text-center text-sm">
Published: {frontmatter.pubDate}
</p>
)
}
{
frontmatter?.image && (
<figure>
2024-07-26 01:18:44 +00:00
<div class="text-center">
<img
class="dark:opacity-70 rounded pt-8 inline-block"
src={frontmatter.image.url}
alt={frontmatter.image.alt}
/>
</div>
2024-07-15 14:05:28 +00:00
<figcaption class="text-xs text-center pt-2 pb-8 opacity-75">
{frontmatter.image.caption}
</figcaption>
</figure>
)
}
</div>
2024-05-21 01:05:51 +00:00
2024-07-15 14:05:28 +00:00
<div class="text-base">
<slot />
</div>
2024-05-20 22:47:25 +00:00
2024-08-19 22:16:08 +00:00
<div class="pt-4 border-t border-c-on-bg">
<h3>Comments/Comentarios</h3>
<section id="isso-thread"
>
<noscript>Javascript needs to be activated to view comments.</noscript>
</section>
</div>
2024-07-15 14:05:28 +00:00
<div class="min-h-40"></div>
</div>
2024-08-15 16:24:02 +00:00
</NavigationLayout>
2024-08-19 22:16:08 +00:00
<script data-isso="https://comments.araozu.dev/"
data-isso-lang={lang}
src="https://comments.araozu.dev/js/embed.min.js"
></script>
2024-05-17 23:53:35 +00:00
</body>
</html>