Skip to content

Commit a9b7ab5

Browse files
committed
fix: Update logo and add inline docs
1 parent cb1baf9 commit a9b7ab5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"build": "gridsome build"
77
},
88
"dependencies": {
9-
"gridsome": "^0.3.0"
9+
"gridsome": "^0.4.0"
1010
}
1111
}

src/favicon.png

6.73 KB
Loading

src/layouts/Default.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="layout">
33
<header class="header">
44
<strong>
5-
<g-link :to="{ name: 'home' }">Gridsome</g-link>
5+
<g-link :to="{ name: 'home' }">{{ $static.metaData.siteName }}</g-link>
66
</strong>
77
<nav class="nav">
88
<g-link class="nav__link" :to="{ name: 'home' }">Home</g-link>
@@ -13,6 +13,14 @@
1313
</div>
1414
</template>
1515

16+
<static-query>
17+
query {
18+
metaData {
19+
siteName
20+
}
21+
}
22+
</static-query>
23+
1624
<style>
1725
body {
1826
font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
@@ -22,7 +30,7 @@ body {
2230
}
2331
2432
.layout {
25-
max-width: 600px;
33+
max-width: 760px;
2634
margin: 0 auto;
2735
padding-left: 20px;
2836
padding-right: 20px;

src/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
// This is the main.js file. Import global CSS and scripts here.
2+
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
3+
14
import DefaultLayout from '~/layouts/Default.vue'
25

36
export default function (Vue) {
7+
// Set default layout as a global component
48
Vue.component('Layout', DefaultLayout)
5-
}
9+
}

0 commit comments

Comments
 (0)