Skip to content

Commit 199070e

Browse files
committed
Metadata partially set up.
1 parent 586cda3 commit 199070e

File tree

6 files changed

+46
-6
lines changed

6 files changed

+46
-6
lines changed

package-lock.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"core-js": "^3.6.5",
1212
"firebase": "^9.0.0",
1313
"vue": "^2.6.11",
14+
"vue-meta": "^2.4.0",
1415
"vue-router": "^3.5.2",
1516
"vuetify": "^2.4.0",
1617
"vuex": "^3.6.2"

public/favicon.ico

-3.06 KB
Binary file not shown.

public/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title><%= htmlWebpackPlugin.options.title %></title>
98
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
109
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
1110
</head>

src/App.vue

+11-5
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,24 @@ import Container from "./views/Container.vue";
1111
1212
export default {
1313
name: "App",
14-
1514
components: {
1615
Container,
1716
},
18-
19-
data: () => ({
20-
//
21-
}),
2217
mounted() {
2318
this.$store.dispatch("setUserMetaData");
2419
this.$store.dispatch("setSkills");
2520
},
21+
metaInfo() {
22+
return {
23+
title: this.title,
24+
};
25+
},
26+
computed: {
27+
title: function () {
28+
let name = this.$store.getters.getUserMetaData.name;
29+
return name ? `${name} | Resume` : "A dummy title.";
30+
},
31+
},
2632
};
2733
</script>
2834
<style>

src/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import App from './App.vue'
33
import vuetify from './plugins/vuetify'
44
import store from "./store";
55
import router from './routes.js'
6+
import VueMeta from 'vue-meta'
67

8+
Vue.use(VueMeta)
79
Vue.config.productionTip = false
810

911
new Vue({

0 commit comments

Comments
 (0)