mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-21 06:54:08 -07:00
Use pageUrlString for meta twitter:url
This commit is contained in:
parent
020dbae614
commit
5dbbca4610
1 changed files with 6 additions and 1 deletions
|
|
@ -3,7 +3,6 @@ import fs from 'fs-extra'
|
||||||
|
|
||||||
import nuxtConfig from '~/nuxt.config.js'
|
import nuxtConfig from '~/nuxt.config.js'
|
||||||
|
|
||||||
|
|
||||||
export const nuxtHead = nuxtConfig.head
|
export const nuxtHead = nuxtConfig.head
|
||||||
|
|
||||||
export async function getNetlifyConfig () {
|
export async function getNetlifyConfig () {
|
||||||
|
|
@ -143,6 +142,12 @@ export class PageHead {
|
||||||
// console.log('this.defaultMeta', this.defaultMeta)
|
// console.log('this.defaultMeta', this.defaultMeta)
|
||||||
return [
|
return [
|
||||||
...this.defaultMeta,
|
...this.defaultMeta,
|
||||||
|
|
||||||
|
{
|
||||||
|
'property': 'twitter:url',
|
||||||
|
'content': this.pageUrlString
|
||||||
|
},
|
||||||
|
|
||||||
...this.meta
|
...this.meta
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue