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

@@ -18,12 +18,8 @@ export default {
}
},
computed: {
category() {
console.log(this.categoryTitle)
console.log(this.categories)
const result = this.categories.find(category => category.title.toLowerCase() === this.categoryTitle.toLowerCase())
console.log(result)
return result
category() {
return this.categories.find(category => category.title.toLowerCase() === this.categoryTitle.toLowerCase())
}
},
components: { Card, },