Use server detected host for sharing URLs

This commit is contained in:
2020-03-28 12:48:59 +01:00
parent 3a4b1c2c85
commit fbdbe21dd6
5 changed files with 22 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
<script>
import { onMount } from 'svelte'
import { stores } from '@sapper/app'
import { site, pageReady, pageTransition } from '../utils/store'
// Components
@@ -14,6 +15,9 @@
import { animateIn } from '../animations/page'
pageTransition.onAnimationEnd = animateIn
// Variables
const { page } = stores()
/*
** Run code when mounted
@@ -28,7 +32,7 @@
<title>{$site.seo_name} - Credits</title>
<meta name="description" content={$site.credits_text}>
<SocialMetas
url="https://housesof.world/credits"
url="https://{$page.host}/credits"
title="{$site.seo_name} - Credits"
description={$site.credits_text}
image={$site.seo_share_image.full_url}