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,38 +0,0 @@
<template lang="pug">
div
h1 Fullstack
.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: 'freeCodeCamp curriculum',
desc: 'We have thousands of coding lessons to help you improve your skills. You can earn each certification by completing its 5 final projects. And yes - all of this is 100% free, thanks to the thousands of campers who donate to our nonprofit. If you are new to coding, we recommend you start at the beginning.',
url: 'https://learn.freecodecamp.org'
},
{
title: 'Learn Node',
desc: 'Permium course by WesBos teaching you the MEPN (Mongo, Express, Pug, Node) stack using a fullstack project as example.',
url: 'https://learnnode.com'
},
]
}
},
components: {
Card
}
}
</script>
<style lang="scss" scoped>
</style>