Commit 39b217bf authored by Manuel Tancoigne's avatar Manuel Tancoigne

Use template list components

parent c9270c6a
......@@ -10,34 +10,18 @@
</i-column>
<i-column sm="6">
<h2>{{ $t('home.title') }}</h2>
<ul>
<li v-for="(template, key) in templates" :key="key">
<strong>
<span v-if="template.lang">[ {{ template.lang }} ]</span>
<router-link :to="{ name: 'renderer', params: { content: key} }">{{ template.name }}</router-link>
</strong>
<span v-if="template.tags" class="small">
{{ template.tags.join(', ') }}
</span>
<div>{{ template.description }}</div>
</li>
</ul>
<template-list />
</i-column>
</i-row>
</i-container>
</template>
<script>
import templates from '../templates'
import Logo from '../components/Logo'
import TemplateList from '../components/TemplateList'
export default {
name: 'Home',
components: { Logo },
data () {
return {
templates,
}
},
components: { TemplateList, Logo },
}
</script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment