remove hardcoded pages, add slug to store entries, dynamically render sidebar
This commit is contained in:
@@ -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, },
|
||||
|
||||
Reference in New Issue
Block a user