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