Commit b043f855 authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Add footer

parent 69841187
<template>
<!-- The footer at the very bottom of the screen -->
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section class="copyright">
<a href="/">{{ Admin.site.title }}</a> &copy; {{ new Date().getFullYear() }}
</section>
<nav class="site-footer-nav">
<g-link to="/">Latest Posts</g-link>
<a v-if="Admin.social_media.facebook" :href="'https://facebook.com/' + Admin.social_media.facebook" target="_blank" rel="noopener">Facebook</a>
<a v-if="Admin.social_media.twitter" :href="'https://twitter.com/' + Admin.social_media.twitter" target="_blank" rel="noopener">Twitter</a>
<a v-if="Admin.social_media.coffee" :href="'https://buymeacoffee.com/' + Admin.social_media.coffee" target="_blank" rel="noopener">Buy Me A Coffee</a>
<a href="https://gridsome.org" target="_blank" rel="noopener">Gridsome</a>
</nav>
</div>
</footer>
</template>
<script>
import Admin from '../../data/admin.yml'
export default {
computed: {
Admin() {
return Admin
}
}
}
</script>
......@@ -2,5 +2,19 @@
<div class="site-wrapper">
<!-- All the main content gets inserted here, index.hbs, post.hbs, etc -->
<slot/>
<!-- The footer at the very bottom of the screen -->
<Footer/>
</div>
</template>
\ No newline at end of file
</template>
<script>
import Footer from '~/components/Footer';
export default {
components: {
Footer
},
}
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment