mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
chore: replace paths
This commit is contained in:
committed by
Stefan Imhoff
parent
a07898ce5b
commit
d920cb8197
@@ -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[`}
|
||||
/>
|
||||
|
||||
@@ -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 |
@@ -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 },
|
||||
{
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user