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 navigation: true
social_media: social_media:
facebook: 'gridsome' facebook: 'snipette'
twitter: 'gridsome' twitter: 'snipettemag'
patreon: 'mittalyashu'
nav_home: nav_home:
- title: Home - title: Home
@ -20,4 +19,4 @@ nav_home:
- title: Getting Started - title: Getting Started
link: /tag/getting-started/ link: /tag/getting-started/
- title: Try Gridsome - title: Try Gridsome
link: https://www.gridsome.org/ link: https://www.gridsome.org/

View file

@ -3,7 +3,7 @@
<footer class="site-footer outer"> <footer class="site-footer outer">
<div class="site-footer-content inner"> <div class="site-footer-content inner">
<section class="copyright"> <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> </section>
<nav class="site-footer-nav"> <nav class="site-footer-nav">
<g-link to="/">Latest Posts</g-link> <g-link to="/">Latest Posts</g-link>
@ -27,3 +27,23 @@
} }
} }
</script> </script>
<static-query>
query Admin {
metadata {
siteName
siteDescription
siteUrl
ghost {
title
url
logo
description
navigation {
url
label
}
}
}
}
</static-query>