Opengraph
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m39s

This commit is contained in:
2026-02-07 00:28:33 -07:00
parent 6b77ce091d
commit dce37681af
13 changed files with 336 additions and 230 deletions

View File

@@ -2,6 +2,7 @@
import Layout from "../layouts/Layout.astro";
import { getCollection, type CollectionEntry } from "astro:content";
import { Icon } from "astro-icon/components";
import { config } from "../config";
// Get all posts from the content collection
const posts = await getCollection("posts");
@@ -21,7 +22,12 @@ function formatDate(date: Date): string {
}
---
<Layout>
<Layout
title={config.siteConfig.pageOpenGraph.posts.title}
description={config.siteConfig.pageOpenGraph.posts.description}
ogImage={config.siteConfig.pageOpenGraph.posts.image}
ogType={config.siteConfig.pageOpenGraph.posts.type}
>
<div class="w-full max-w-3xl mx-auto p-4 sm:p-8">
<h1
class="text-3xl sm:text-4xl font-bold text-primary mb-6 sm:mb-8 text-center"