Compare commits
No commits in common. "a81e6cf1267ea5ba17400e5783c904ac70a17980" and "c66bc867713fd99c43d3b08fee9ee3413c5ba702" have entirely different histories.
a81e6cf126
...
c66bc86771
@ -14,7 +14,9 @@
|
||||
/>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>魚之魷魂 SquidSpirit</title>
|
||||
|
||||
<meta name="description" content="程式、科技、教學、分享" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
|
@ -6,8 +6,7 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{generateTitle('程式、科技、教學、分享')}</title>
|
||||
<!-- The meta description is set in `Terminal` -->
|
||||
<title>{generateTitle()}</title>
|
||||
</svelte:head>
|
||||
<div>
|
||||
<TitleScreen />
|
||||
|
@ -52,9 +52,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta name="description" content="{lines.join(',')}" />
|
||||
</svelte:head>
|
||||
<div
|
||||
class="container flex flex-col items-center justify-center gap-y-2.5 py-32 md:gap-y-8 md:px-24 md:py-32"
|
||||
>
|
||||
|
@ -5,7 +5,6 @@
|
||||
import markdownit from 'markdown-it';
|
||||
import SafeHtml from '$lib/common/framework/ui/SafeHtml.svelte';
|
||||
import generateTitle from '$lib/common/framework/ui/generateTitle';
|
||||
import StructuredData from '$lib/post/framework/ui/StructuredData.svelte';
|
||||
|
||||
const { id }: { id: number } = $props();
|
||||
|
||||
@ -20,15 +19,6 @@
|
||||
|
||||
<svelte:head>
|
||||
<title>{generateTitle(state.data?.info.title)}</title>
|
||||
{#if state.data}
|
||||
<meta name="description" content={state.data.info.description} />
|
||||
<StructuredData
|
||||
headline={state.data.info.title}
|
||||
description={state.data.info.description}
|
||||
datePublished={state.data.info.publishedTime}
|
||||
image={state.data.info.previewImageUrl}
|
||||
/>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
<article class="container prose pb-10 prose-gray">
|
||||
{#if state.data}
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
<svelte:head>
|
||||
<title>{generateTitle('文章')}</title>
|
||||
<meta name="description" content="探索 魚之魷魂 SquidSpirit 的所有文章,這裡是您尋找最新技術洞見與實用教學的園地。" />
|
||||
</svelte:head>
|
||||
<div class="container pb-10">
|
||||
<h1 class="py-9 text-center text-3xl font-bold text-gray-800 md:py-20 md:text-5xl">文章</h1>
|
||||
|
@ -1,26 +0,0 @@
|
||||
<script lang="ts">
|
||||
/* eslint-disable svelte/no-at-html-tags */
|
||||
|
||||
const {
|
||||
headline,
|
||||
description,
|
||||
datePublished,
|
||||
image
|
||||
}: {
|
||||
headline: string;
|
||||
description: string;
|
||||
datePublished: Date;
|
||||
image: URL;
|
||||
} = $props();
|
||||
|
||||
const structuredData = $derived({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'BlogPosting',
|
||||
headline: headline,
|
||||
description: description,
|
||||
datePublished: datePublished.toISOString(),
|
||||
image: image.href
|
||||
});
|
||||
</script>
|
||||
|
||||
{@html `<script type="application/ld+json">${JSON.stringify(structuredData)}<\/script>`}
|
Loading…
x
Reference in New Issue
Block a user