fix: remove vue-meta, place meta tags directly in index.html
This commit is contained in:
parent
a7c038de43
commit
505c95364d
6 changed files with 18 additions and 90 deletions
13
src/App.vue
13
src/App.vue
|
@ -382,18 +382,7 @@ export default {
|
|||
nsfw: false
|
||||
};
|
||||
},
|
||||
mixins: [Sebin, Helper],
|
||||
metaInfo: {
|
||||
title: "Sebin Nyshkim - Reference Page",
|
||||
link: [
|
||||
{ rel: "favicon", href: "/img/sebin-smug-icon.png" },
|
||||
{ rel: "icon", href: "/img/sebin-smug-icon.png" }
|
||||
],
|
||||
meta: Helper.methods.getMetaTags(),
|
||||
htmlAttrs: {
|
||||
lang: "en"
|
||||
}
|
||||
}
|
||||
mixins: [Sebin, Helper]
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import Vue from "vue";
|
||||
import Meta from "vue-meta";
|
||||
import App from "./App.vue";
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
Vue.use(Meta);
|
||||
|
||||
new Vue({
|
||||
render: h => h(App)
|
||||
}).$mount("#app");
|
||||
|
|
|
@ -43,62 +43,6 @@ export default {
|
|||
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) {
|
||||
let kittens = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue