refactor: move meta tags into helper module
This commit is contained in:
parent
0adf7cb855
commit
ca2c9a37a8
2 changed files with 57 additions and 45 deletions
46
src/App.vue
46
src/App.vue
|
@ -314,51 +314,7 @@ export default {
|
||||||
{ rel: "favicon", href: "/img/sebin-smug-icon.png" },
|
{ rel: "favicon", href: "/img/sebin-smug-icon.png" },
|
||||||
{ rel: "icon", href: "/img/sebin-smug-icon.png" }
|
{ rel: "icon", href: "/img/sebin-smug-icon.png" }
|
||||||
],
|
],
|
||||||
meta: [
|
meta: Helper.methods.getMetaTags(),
|
||||||
{ charset: "utf-8" },
|
|
||||||
{
|
|
||||||
name: "twitter:card",
|
|
||||||
content: "summary"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "twitter:creator",
|
|
||||||
content: "@SebinNyshkim"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "twitter:description",
|
|
||||||
content:
|
|
||||||
"Learn everything about your favorite neighborhood derg, down the the minute details!"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "twitter:title",
|
|
||||||
content: "Sebin Nyshkim - Reference Page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "twitter:image",
|
|
||||||
content: "http://ref.sebin-nyshkim.net/img/sebin-smug-icon.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: "og:title",
|
|
||||||
content: "Sebin Nyshkim - Reference Page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: "og:type",
|
|
||||||
content: "website"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: "og:url",
|
|
||||||
content: "http://ref.sebin-nyshkim.net"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: "og:image",
|
|
||||||
content: "http://ref.sebin-nyshkim.net/img/sebin-smug-icon.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: "og:description",
|
|
||||||
content:
|
|
||||||
"Learn everything about your favorite neighborhood derg, down the the minute details!"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
htmlAttrs: {
|
htmlAttrs: {
|
||||||
lang: "en"
|
lang: "en"
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,62 @@ export default {
|
||||||
return [warm, cold, workout, lazy];
|
return [warm, cold, workout, lazy];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getMetaTags() {
|
||||||
|
let charset = "utf-8";
|
||||||
|
let title = "Sebin Nyshkim - Reference Page";
|
||||||
|
let description =
|
||||||
|
"Learn everything about your favorite neighborhood derg, down to the minute details!";
|
||||||
|
let image = "https://ref.sebin-nyshkim.net/img/sebin-smug-icon.png";
|
||||||
|
|
||||||
|
let twitterCard = [
|
||||||
|
{
|
||||||
|
name: "twitter:card",
|
||||||
|
content: "summary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "twitter:creator",
|
||||||
|
content: "@SebinNyshkim"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "twitter:description",
|
||||||
|
content: description
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "twitter:title",
|
||||||
|
content: title
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "twitter:image",
|
||||||
|
content: image
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
let openGraph = [
|
||||||
|
{
|
||||||
|
property: "og:title",
|
||||||
|
content: title
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: "og:type",
|
||||||
|
content: "website"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: "og:url",
|
||||||
|
content: "https://ref.sebin-nyshkim.net"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: "og:image",
|
||||||
|
content: image
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: "og:description",
|
||||||
|
content: description
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
return [{ charset }, ...twitterCard, ...openGraph];
|
||||||
|
},
|
||||||
|
|
||||||
getKittens(count) {
|
getKittens(count) {
|
||||||
let kittens = [];
|
let kittens = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue