diff options
| author | Pitu <[email protected]> | 2021-01-21 01:35:04 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-21 01:35:04 +0900 |
| commit | ba409ef2fcf028be95b27bf94fd24e1295888d07 (patch) | |
| tree | 39ce1d0f26d177cdb863980c3689ccee3257d7da /src/site/pages | |
| parent | fix: potentially fix meta embeds (diff) | |
| download | host.fuwn.me-ba409ef2fcf028be95b27bf94fd24e1295888d07.tar.xz host.fuwn.me-ba409ef2fcf028be95b27bf94fd24e1295888d07.zip | |
chore: update metadata
Diffstat (limited to 'src/site/pages')
| -rw-r--r-- | src/site/pages/a/_identifier.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue index 6aecde6..d9abf0a 100644 --- a/src/site/pages/a/_identifier.vue +++ b/src/site/pages/a/_identifier.vue @@ -146,8 +146,9 @@ export default { }, head() { if (this.files) { - const image = this.isNsfw ? logo : this.files.length ? this.files[0].thumbSquare : logo; + const image = this.isNsfw ? logo : this.files.length ? this.files[0].url : logo; const title = this.name ? this.isNsfw ? `[NSFW] ${this.name}` : this.name : ''; + const description = `Files: ${this.totalFiles}`; return { title, meta: [ @@ -156,6 +157,8 @@ export default { { hid: 'twitter:image', name: 'twitter:image', content: image }, { hid: 'twitter:label1', name: 'twitter:label1', value: 'Files' }, { hid: 'twitter:data1', name: 'twitter:data1', value: this.totalFiles }, + { hid: 'twitter:description', name: 'twitter:description', content: description }, + { hid: 'og:description', property: 'og:description', content: description }, { hid: 'og:url', property: 'og:url', content: `${this.config.URL}/a/${this.$route.params.identifier}` }, { hid: 'og:title', property: 'og:title', content: title }, { hid: 'og:image', property: 'og:image', content: image }, |