aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Head.svelte
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-02-15 03:05:09 +0000
committermat <github@matdoes.dev>2022-02-15 03:05:09 +0000
commitfcabd988bd9b98eb5afda600345e14a302fbd4ee (patch)
tree069724e9e0b3543d33fe1ee73f1523cf13b2e1f7 /src/lib/Head.svelte
parentffe5eea0ce73cae8657c547f881b6f41270fef37 (diff)
downloadskyblock-stats-fcabd988bd9b98eb5afda600345e14a302fbd4ee.tar.gz
skyblock-stats-fcabd988bd9b98eb5afda600345e14a302fbd4ee.tar.bz2
skyblock-stats-fcabd988bd9b98eb5afda600345e14a302fbd4ee.zip
add stuff
Diffstat (limited to 'src/lib/Head.svelte')
-rw-r--r--src/lib/Head.svelte17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/Head.svelte b/src/lib/Head.svelte
new file mode 100644
index 0000000..d301f14
--- /dev/null
+++ b/src/lib/Head.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ /** The title that is shown at the top of the page and in search engines */
+ export let title = 'SkyBlock Stats'
+ /** The description that is shown in search engines */
+ export let description = ''
+ /** The title that is shown in platforms like Discord */
+ export let metaTitle = title
+ /** The description that is shown in platforms like Discord */
+ export let metaDescription = description
+</script>
+
+<svelte:head>
+ <title>{title}</title>
+ <meta name="description" content={description}>
+ <meta property="og:title" content={metaTitle}>
+ <meta property="og:description" content={metaDescription}>
+</svelte:head>