mirror of
https://github.com/valentineus/popov.link.git
synced 2025-08-13 09:56:39 +03:00
- Added ogImages integration to generate Open Graph images for blog posts. - Updated configuration to include Open Graph settings and default preview image. - Refactored Head component to utilize new preview property for Open Graph meta tags. - Enhanced blog post schema to include preview image for structured data representation. - Introduced utility functions for creating Open Graph images with dynamic content.
32 lines
853 B
Plaintext
32 lines
853 B
Plaintext
---
|
|
import { config } from "../config";
|
|
import Layout from "../layouts/BaseLayout.astro";
|
|
import pageSchema from "../utils/schemas/pageSchema";
|
|
|
|
const title = "404 — Page Not Found | Valentin Popov";
|
|
const description = "The page you're looking for doesn't exist!";
|
|
const preview = config.og.defaultPreview;
|
|
const lang = "en";
|
|
|
|
const schema = pageSchema({
|
|
siteUrl: new URL("/", Astro.site).toString(),
|
|
page: "/404",
|
|
title,
|
|
description,
|
|
lang,
|
|
});
|
|
---
|
|
|
|
<Layout title={title} description={description} preview={preview} lang={lang} schema={schema}>
|
|
<div style={{ "text-align": "center" }}>
|
|
<h1>404</h1>
|
|
<p><strong>Page not found</strong></p>
|
|
<p>
|
|
<small>
|
|
If you see this message, please
|
|
<a href=`mailto:valentin@popov.link?subject=${encodeURIComponent('I found a broken page')}`>let me know</a>
|
|
</small>
|
|
</p>
|
|
</div>
|
|
</Layout>
|