remove hardcoded pages, add slug to store entries, dynamically render sidebar

This commit is contained in:
Kevin Van Der Werff
2019-06-15 18:12:28 +02:00
parent c9595c7281
commit fad6dc653e
15 changed files with 34 additions and 957 deletions

View File

@@ -1,46 +0,0 @@
<template lang="pug">
div
h1 Servers
.cards
template(v-for='resource in resources')
Card(:title='resource.title' :desc='resource.desc' :url='resource.url')
</template>
<script>
import Card from '../../components/Card'
export default {
data() {
return {
resources: [
{
title: 'Netlify',
desc: 'Free static hosting with privacy in mind!',
url: 'https://netlify.com'
},
{
title: 'Github Pages',
desc: 'Free static hosting by Github.',
url: 'https://pages.github.com'
},
{
title: 'Namecheap',
desc: 'Domains for your projects',
url: 'https://namecheap.com'
},
{
title: 'Servers for hackers',
desc: 'Tutorials on how to handle your servers.',
url: 'https://serversforhackers.com/'
},
]
}
},
components: {
Card
}
}
</script>
<style lang="scss" scoped>
</style>