chore: replace paths

This commit is contained in:
Stefan Imhoff
2026-01-24 20:19:43 +01:00
committed by Stefan Imhoff
parent a07898ce5b
commit d920cb8197
314 changed files with 28 additions and 60 deletions

View File

@@ -36,10 +36,10 @@ const rssFooterXml = ` </channel>
? post.frontmatter.cover.startsWith('/assets/images/cover/') &&
post.frontmatter.cover.endsWith('.webp')
? post.frontmatter.cover
.replace('/assets/images/cover/', '/assets/images/branding/og/')
.replace('/assets/images/cover/', '/assets/images/og/')
.replace(/\.webp$/, '.jpg')
: post.frontmatter.cover
: '/assets/images/branding/og/bonsai.jpg')
: '/assets/images/og/bonsai.jpg')
}" length="0" type="image/jpeg" />
<content:encoded><![CDATA[`}
/>

View File

@@ -4,6 +4,6 @@ export const site = {
url: 'https://www.stefanimhoff.de',
author: 'Stefan Imhoff',
tagline: '👨🏻‍💻 Web Developer • ⬜️ Minimalist • 🏛️ Stoic • 🏴 Ancap • ⛩️ Japanophile',
faviconPath: '/assets/images/branding/favicons/',
faviconPath: '/assets/images/favicons/',
x: '@kogakure',
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

View File

@@ -30,14 +30,12 @@ const {
nofollow,
noindex,
title,
cover = '/assets/images/branding/og/bonsai.jpg',
cover = '/assets/images/og/bonsai.jpg',
} = Astro.props;
const ogImage =
cover.startsWith('/assets/images/cover/') && cover.endsWith('.webp')
? cover
.replace('/assets/images/cover/', '/assets/images/branding/og/')
.replace(/\.webp$/, '.jpg')
cover.startsWith('/images/cover/') && cover.endsWith('.webp')
? cover.replace('/images/cover/', '/assets/images/og/').replace(/\.webp$/, '.jpg')
: cover;
const currentPath = new URL(Astro.request.url).pathname;
@@ -100,12 +98,12 @@ const webManifest = isProduction && {
{ rel: 'icon', href: '/favicon.ico' },
{
rel: 'icon',
href: '/assets/images/branding/favicons/favicon.svg',
href: '/assets/images/favicons/favicon.svg',
type: 'image/svg+xml',
},
{
rel: 'apple-touch-icon',
href: '/assets/images/branding/favicons/apple-touch-icon.png',
href: '/assets/images/favicons/apple-touch-icon.png',
},
{ ...webManifest },
{

View File

@@ -61,9 +61,7 @@ const schema = JSON.stringify({
datePublished: entry.data.date,
dateModified: entry.data.updated,
image: [
entry.data.cover
? site.url + entry.data.cover
: `${site.url}/assets/images/branding/og/bonsai.jpg`,
entry.data.cover ? site.url + entry.data.cover : `${site.url}/assets/images/og/bonsai.jpg`,
],
author: [
{