Skip to content

Commit 6146df3

Browse files
authored
Merge pull request #3 from gridsome/fix/update-docs-logo
Fix/update docs logo
2 parents 9c51602 + 9fec19b commit 6146df3

File tree

11 files changed

+65
-8
lines changed

11 files changed

+65
-8
lines changed

gridsome.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
// Learn more: https://gridsome.org/docs/config
33

44
module.exports = {
5+
siteName: 'Gridsome',
56
plugins: []
6-
}
7+
}

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/components/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Add components that will be imported to Pages and Layouts to this folder.
2+
Learn more about components here: https://gridsome.org/docs/components
3+
4+
You can delete this file.

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/layouts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Layout components are used to wrap pages and templates. Layouts should contain components like headers, footers or sidebars that will be used across the site.
2+
3+
Learn more about Layouts: https://gridsome.org/docs/layouts
4+
5+
You can delete this file.

src/main.js

Lines changed: 6 additions & 2 deletions
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

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

src/pages/Index.vue

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
<template>
22
<Layout>
3+
4+
<!-- Learn how to use images here: https://gridsome.org/docs/images -->
35
<g-image alt="Example image" src="~/favicon.png" width="135" />
6+
47
<h1>Hello, world!</h1>
5-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur excepturi labore tempore expedita, et iste tenetur suscipit explicabo! Dolores, aperiam non officia eos quod asperiores</p>
8+
9+
<p>
10+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur excepturi labore tempore expedita, et iste tenetur suscipit explicabo! Dolores, aperiam non officia eos quod asperiores
11+
</p>
12+
13+
<p class="home-links">
14+
<a href="https://gridsome.org/docs" target="_blank">Gridsome Docs</a>
15+
<a href="https://github.com/gridsome/gridsome" target="_blank">GitHub</a>
16+
</p>
17+
618
</Layout>
719
</template>
820

921
<script>
10-
export default {}
22+
export default {
23+
// ..
24+
}
1125
</script>
26+
27+
<style>
28+
.home-links a {
29+
margin-right: 1rem;
30+
}
31+
</style>

src/pages/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Pages are usually used for normal pages or for listing items from a GraphQL collection.
2+
Add .vue files here to create pages. For example **About.vue** will be **site.com/about**.
3+
Learn more about pages: https://gridsome.org/docs/pages
4+
5+
You can delete this file.

src/templates/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Templates for **GraphQL collections** should be added here.
2+
To create a template for a collection called `WordPressPost`
3+
create a file named `WordPressPost.vue` in this folder.
4+
5+
Learn more: https://gridsome.org/docs/templates
6+
7+
You can delete this file.

0 commit comments

Comments
 (0)