add twitter metadata - fixes #2448

pull/2454/head
Richard Harris 6 years ago
parent 3826d6cc43
commit 9a600b79a9

@ -11,6 +11,9 @@
<svelte:head> <svelte:head>
<title>{post.metadata.title}</title> <title>{post.metadata.title}</title>
<meta name="twitter:title" content={post.metadata.title}>
<meta name="twitter:description" content={post.metadata.description}>
</svelte:head> </svelte:head>
<article class='post linkify listify'> <article class='post linkify listify'>

@ -10,8 +10,10 @@
</script> </script>
<svelte:head> <svelte:head>
<title>Svelte • The magical disappearing UI framework</title> <title>Blog • Svelte</title>
<link rel="alternate" type="application/rss+xml" title="Svelte blog" href="blog/rss.xml"> <link rel="alternate" type="application/rss+xml" title="Svelte blog" href="blog/rss.xml">
<meta name='twitter:title' content='Svelte blog'>
</svelte:head> </svelte:head>
<div class='posts stretch'> <div class='posts stretch'>

@ -360,6 +360,9 @@
<svelte:head> <svelte:head>
<title>API Docs • Svelte</title> <title>API Docs • Svelte</title>
<meta name='twitter:title' content='Svelte API docs'>
<meta name='twitter:description' content='Cybernetically enhanced web apps'>
</svelte:head> </svelte:head>
<div bind:this={container} class='content linkify listify'> <div bind:this={container} class='content linkify listify'>

@ -73,6 +73,13 @@
} }
</style> </style>
<svelte:head>
<title>Examples • Svelte</title>
<meta name='twitter:title' content='Svelte examples'>
<meta name='twitter:description' content='Cybernetically enhanced web apps'>
</svelte:head>
<div class="content"> <div class="content">
<h1>Examples</h1> <h1>Examples</h1>

@ -137,6 +137,9 @@
<svelte:head> <svelte:head>
<title>Svelte • Cybernetically enhanced web apps</title> <title>Svelte • Cybernetically enhanced web apps</title>
<meta name='twitter:title' content='Svelte'>
<meta name='twitter:description' content='Cybernetically enhanced web apps'>
</svelte:head> </svelte:head>
<svelte:window bind:scrollY={sy}/> <svelte:window bind:scrollY={sy}/>

@ -30,6 +30,13 @@
} }
</style> </style>
<svelte:head>
<title>REPL • Svelte</title>
<meta name='twitter:title' content='Svelte REPL'>
<meta name='twitter:description' content='Cybernetically enhanced web apps'>
</svelte:head>
<div class="repl-outer"> <div class="repl-outer">
{#if process.browser} {#if process.browser}
<ReplWidget {version} {gist} {example} embedded={true}/> <ReplWidget {version} {gist} {example} embedded={true}/>

@ -181,7 +181,10 @@
</style> </style>
<svelte:head> <svelte:head>
<title>Svelte REPL</title> <title>REPL • Svelte</title>
<meta name='twitter:title' content='Svelte REPL'>
<meta name='twitter:description' content='Cybernetically enhanced web apps'>
</svelte:head> </svelte:head>
<svelte:window bind:innerWidth={width}/> <svelte:window bind:innerWidth={width}/>

@ -252,6 +252,9 @@
<svelte:head> <svelte:head>
<title>{selected.section.title} / {selected.chapter.title} • Svelte Tutorial</title> <title>{selected.section.title} / {selected.chapter.title} • Svelte Tutorial</title>
<meta name='twitter:title' content='Svelte tutorial'>
<meta name='twitter:description' content="{selected.section.title} / {selected.chapter.title}">
</svelte:head> </svelte:head>
<svelte:window bind:innerWidth={width}/> <svelte:window bind:innerWidth={width}/>

@ -12,6 +12,11 @@
<link rel='manifest' href='manifest.json'> <link rel='manifest' href='manifest.json'>
<link rel='icon' type='image/png' href='favicon.png'> <link rel='icon' type='image/png' href='favicon.png'>
<meta name='twitter:card' content='summary_large_image'>
<meta name='twitter:site' content='@sveltejs'>
<meta name='twitter:creator' content='@sveltejs'>
<meta name='twitter:image' content='https://v2.svelte.dev/images/twitter-card.png'>
<!-- Sapper generates a <style> tag containing critical CSS <!-- Sapper generates a <style> tag containing critical CSS
for the current page. CSS for the rest of the app is for the current page. CSS for the rest of the app is
lazily loaded when it precaches secondary pages --> lazily loaded when it precaches secondary pages -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Loading…
Cancel
Save