Update site metadata and make it display in header/footer

This commit is contained in:
Badri Sunderarajan 2020-03-15 13:29:25 +05:30
parent 9be6baae52
commit 56a16d9d50
2 changed files with 24 additions and 5 deletions

View file

@ -8,9 +8,8 @@ site:
navigation: true
social_media:
facebook: 'gridsome'
twitter: 'gridsome'
patreon: 'mittalyashu'
facebook: 'snipette'
twitter: 'snipettemag'
nav_home:
- title: Home
@ -20,4 +19,4 @@ nav_home:
- title: Getting Started
link: /tag/getting-started/
- title: Try Gridsome
link: https://www.gridsome.org/
link: https://www.gridsome.org/

View file

@ -3,7 +3,7 @@
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section class="copyright">
<a href="/">{{ Admin.site.title }}</a> &copy; {{ new Date().getFullYear() }}
<a href="/">{{ $static.metadata.siteName || Admin.site.title }}</a> &copy; {{ new Date().getFullYear() }}
</section>
<nav class="site-footer-nav">
<g-link to="/">Latest Posts</g-link>
@ -27,3 +27,23 @@
}
}
</script>
<static-query>
query Admin {
metadata {
siteName
siteDescription
siteUrl
ghost {
title
url
logo
description
navigation {
url
label
}
}
}
}
</static-query>