mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Get site url from helper
This commit is contained in:
parent
44c6a82957
commit
044d3a293d
1 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,10 @@
|
|||
import { promises as fs } from 'fs'
|
||||
|
||||
import pkg from './package'
|
||||
import pkg from './package.json'
|
||||
import { getSiteUrl } from '~/helpers/get-site-url.js'
|
||||
|
||||
|
||||
const siteUrl = getSiteUrl()
|
||||
|
||||
|
||||
export default {
|
||||
|
|
@ -62,7 +66,7 @@ export default {
|
|||
},
|
||||
{
|
||||
'property': 'og:image',
|
||||
'content': `${process.env.URL}/images/og-image.png`
|
||||
'content': `${ siteUrl }/images/og-image.png`
|
||||
},
|
||||
{
|
||||
'property': 'og:image:width',
|
||||
|
|
@ -92,11 +96,11 @@ export default {
|
|||
},
|
||||
{
|
||||
'property': 'twitter:url',
|
||||
'content': `${process.env.URL}`
|
||||
'content': `${ siteUrl }`
|
||||
},
|
||||
{
|
||||
'property': 'twitter:image',
|
||||
'content': `${process.env.URL}/images/mark.png`
|
||||
'content': `${ siteUrl }/images/mark.png`
|
||||
}
|
||||
],
|
||||
link: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue