canonicalを追加
This commit is contained in:
parent
c8a1aa9c17
commit
6b8e74a318
1 changed files with 5 additions and 3 deletions
|
@ -12,6 +12,7 @@
|
|||
import '$lib/components/Markdown.css';
|
||||
|
||||
const baseURL = `https://${PUBLIC_HOSTNAME}${base}`
|
||||
const canonical = `${baseURL}/post/${data.id}/`
|
||||
|
||||
// toggle code frame
|
||||
onMount(()=>{
|
||||
|
@ -74,9 +75,10 @@
|
|||
|
||||
<svelte:head>
|
||||
<title>{data.metadata.title} | moris.day Blog</title>
|
||||
<link rel="canonical" href="{canonical}"/>
|
||||
<meta name="description" content="{data.metadata.description}"/>
|
||||
|
||||
<meta property="og:url" content="{baseURL}/post/{data.id}"/>
|
||||
<meta property="og:url" content="{canonical}"/>
|
||||
<meta property="og:title" content="{data.metadata.title}"/>
|
||||
<meta property="og:description" content="{data.metadata.description}"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
|
@ -145,7 +147,7 @@
|
|||
<Profile></Profile>
|
||||
</div>
|
||||
<div>
|
||||
<Share share={{url:`${baseURL}/post/${data.id}`, title:data.metadata.title}} />
|
||||
<Share share={{url:canonical, title:data.metadata.title}} />
|
||||
</div>
|
||||
{#if data.toc.length}
|
||||
<div id='toc'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue