add site description
This commit is contained in:
parent
4c59876f7d
commit
b16c97c58b
3 changed files with 13 additions and 12 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteName: 'Gridsome Blog Starter',
|
siteName: 'Gridsome Blog Starter',
|
||||||
|
siteDescription: 'A simple, hackable & minimalistic starter for Gridsome that uses Markdown for content.',
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
<g-image class="author__image" src="~/assets/images/author.jpg" width="180" height="180" blur="5" />
|
<g-image class="author__image" src="~/assets/images/author.jpg" width="180" height="180" blur="5" />
|
||||||
|
|
||||||
<h1 v-if="siteTitle" class="author__site-title">
|
<h1 v-if="showTitle" class="author__site-title">
|
||||||
{{ siteTitle }}
|
{{ $static.metaData.siteName }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="author__intro">
|
<p class="author__intro">
|
||||||
|
@ -19,9 +19,17 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<static-query>
|
||||||
|
query {
|
||||||
|
metaData {
|
||||||
|
siteName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</static-query>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['siteTitle']
|
props: ['showTitle']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<Layout :show-logo="false">
|
<Layout :show-logo="false">
|
||||||
<!-- Author intro -->
|
<!-- Author intro -->
|
||||||
<Author :site-title="$static.metaData.siteName" />
|
<Author :show-title="true" />
|
||||||
|
|
||||||
<!-- List posts -->
|
<!-- List posts -->
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
|
@ -11,14 +11,6 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<static-query>
|
|
||||||
query {
|
|
||||||
metaData {
|
|
||||||
siteName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</static-query>
|
|
||||||
|
|
||||||
<page-query>
|
<page-query>
|
||||||
{
|
{
|
||||||
posts: allPost {
|
posts: allPost {
|
||||||
|
|
Loading…
Add table
Reference in a new issue