claude
This commit is contained in:
parent
fcb0e25ebd
commit
3441a7e4af
108 changed files with 641 additions and 869 deletions
|
|
@ -5,7 +5,7 @@ import VideoThumbnail from './VideoThumbnail.astro';
|
|||
import { absoluteUrl, getHeaderVideo } from '../lib/site';
|
||||
|
||||
interface Props {
|
||||
post: CollectionEntry<'posts'>;
|
||||
post: CollectionEntry<'work'>;
|
||||
}
|
||||
|
||||
const { post } = Astro.props;
|
||||
|
|
@ -13,7 +13,7 @@ const headerVideo = getHeaderVideo(post);
|
|||
const demoLink = post.data.links.find(
|
||||
(link) => !link.download && link.label.trim().toLowerCase() === 'demo'
|
||||
);
|
||||
const iframeUrl = post.data.iframeThumbnail ? demoLink?.url : undefined;
|
||||
const iframeUrl = post.data.article?.iframeThumbnail ? demoLink?.url : undefined;
|
||||
const iframeSrc = iframeUrl?.startsWith('/') ? absoluteUrl(iframeUrl) : iframeUrl;
|
||||
const iframeTitle = demoLink
|
||||
? `${demoLink.label}: ${post.data.title}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue