mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 14:35:49 +00:00
fix(Docs): add dynamic og image generation and fix broken link
This commit is contained in:
parent
63eae643e3
commit
d152f0993c
@ -76,7 +76,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="max-w-2xl">
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/upgrading`}>Version Change</CardHeader>
|
<CardHeader documentation={`/docs/versions`}>Version Change</CardHeader>
|
||||||
|
|
||||||
{#if power}
|
{#if power}
|
||||||
<AlertBar message="Your instance must be powered off to change the version." type="error" />
|
<AlertBar message="Your instance must be powered off to change the version." type="error" />
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
if (windowWidth < 768) sidebarOpen = false
|
if (windowWidth < 768) sidebarOpen = false
|
||||||
}
|
}
|
||||||
|
|
||||||
$: ({ title, description, ogImage } = data.meta || {});
|
$: ({ title, description } = data.meta || {});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -40,8 +40,8 @@
|
|||||||
<meta property="og:description" content={description} />
|
<meta property="og:description" content={description} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if ogImage}
|
{#if title}
|
||||||
<meta property="og:image" content={ogImage} />
|
<meta property="og:image" content={"https://cdn.cheto.app/og/joioes1x8zagn0v?name=" + encodeURIComponent(title)} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
@ -51,8 +51,8 @@
|
|||||||
<meta name="twitter:description" content={description} />
|
<meta name="twitter:description" content={description} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if ogImage}
|
{#if title}
|
||||||
<meta name="twitter:image" content={ogImage} />
|
<meta name="twitter:image" content={"https://cdn.cheto.app/og/joioes1x8zagn0v?name=" + encodeURIComponent(title)} />
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Accessing an Instance
|
title: Accessing an Instance
|
||||||
description: Learn how to access your PocketBase instance managed by PocketHost
|
description: Learn how to access your PocketBase instance managed by PocketHost
|
||||||
ogImage: /docs/accessing.png
|
|
||||||
---
|
---
|
||||||
# Accessing an Instance
|
# Accessing an Instance
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user