chore: change logo on opengraph, adjust title position on mobile post page

This commit is contained in:
radishzzz 2025-03-18 14:39:06 +00:00
parent eb49f1def1
commit 67cc90f744
7 changed files with 313 additions and 306 deletions

View file

@ -18,7 +18,7 @@ const marginBottom = {
}[titleGap] || 'mb-2.875'
---
<header class="mb-10.5 lg:hidden">
<header class="mb-15 lg:hidden">
<h3 class={`${marginBottom} mt-3 text-5.375 c-secondary font-bold font-title`}>
<!-- Fix text cropping issues during view transition on ios by adding a div tag -->
<div

View file

@ -26,7 +26,11 @@ export const { getStaticPaths, GET } = OGImageRoute({
description: page.description,
logo: {
path: './public/image/og-logo.png', // Required local path and PNG format
size: [70],
size: [250],
},
border: {
color: [242, 241, 245],
width: 20,
},
font: {
title: {

View file

@ -121,7 +121,7 @@
font-weight:600
}
.heti .post-title {
--at-apply: 'c-primary mb-2 font-bold text-9 leading-12 text-balance lg:mbs-0';
--at-apply: 'c-primary mb-2 font-bold text-9 leading-12 text-balance mbs-0';
}
.heti h1 {
--at-apply: 'mb-6';

View file

@ -21,8 +21,8 @@ const EXCERPT_LENGTHS: Record<ExcerptScene, {
other: 240,
},
og: {
cjk: 75,
other: 150,
cjk: 70,
other: 140,
},
rss: {
cjk: 120,