social share tags
This commit is contained in:
13
web/src/components/SocialShareMeta.svelte
Normal file
13
web/src/components/SocialShareMeta.svelte
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<script>
|
||||||
|
export let title = "";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<meta property="og:title" content={title}>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:image" content="https://shokku.dev/share-card.png">
|
||||||
|
<meta name="twitter:card" content="https://shokku.dev/share-card.png">
|
||||||
|
|
||||||
|
<meta property="og:description" content="Free and open source interface for the Dokku PaaS">
|
||||||
|
<meta name="twitter:image:alt" content="Shokku Logo">
|
||||||
|
</svelte:head>
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import SocialShareMeta from "$components/SocialShareMeta.svelte";
|
||||||
import Navbar from "$components/Navbar.svelte";
|
import Navbar from "$components/Navbar.svelte";
|
||||||
import Hero from "./Hero.svelte";
|
import Hero from "./Hero.svelte";
|
||||||
import Features from "./Features.svelte";
|
import Features from "./Features.svelte";
|
||||||
@@ -8,6 +9,7 @@
|
|||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Shokku</title>
|
<title>Shokku</title>
|
||||||
|
<SocialShareMeta title="Shokku" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="flex flex-col bg-base-300">
|
<div class="flex flex-col bg-base-300">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import {page} from "$app/stores";
|
import {page} from "$app/stores";
|
||||||
import Navbar from "$components/Navbar.svelte";
|
import Navbar from "$components/Navbar.svelte";
|
||||||
import ProgressButtons from "./ProgressButtons.svelte";
|
import ProgressButtons from "./ProgressButtons.svelte";
|
||||||
|
import SocialShareMeta from "$components/SocialShareMeta.svelte";
|
||||||
|
|
||||||
const sidebarPages = [
|
const sidebarPages = [
|
||||||
{section: "Getting Started", ref: "/docs/intro", label: "Introduction"},
|
{section: "Getting Started", ref: "/docs/intro", label: "Introduction"},
|
||||||
@@ -22,10 +23,13 @@
|
|||||||
prevPage = (currentPage > 0) ? sidebarPages[currentPage - 1] : null;
|
prevPage = (currentPage > 0) ? sidebarPages[currentPage - 1] : null;
|
||||||
nextPage = (currentPage < sidebarPages.length - 1) ? sidebarPages[currentPage + 1] : null;
|
nextPage = (currentPage < sidebarPages.length - 1) ? sidebarPages[currentPage + 1] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: pageTitle = `Shokku Docs - ${sidebarPages[currentPage].label}`;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Shokku Docs - {sidebarPages[currentPage].label}</title>
|
<title>{pageTitle}</title>
|
||||||
|
<SocialShareMeta title={pageTitle} />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="flex flex-col h-screen">
|
<div class="flex flex-col h-screen">
|
||||||
|
|||||||
BIN
web/static/images/share-card.png
Normal file
BIN
web/static/images/share-card.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user