Adding initial nuxt version for static page.

This commit is contained in:
Tomasz Półgrabia 2022-01-30 14:51:59 +01:00
parent 0f7094c61a
commit 1671d19134
28 changed files with 2744 additions and 102 deletions

View file

@ -0,0 +1,27 @@
<template>
<div>
<div v-html="renderedTemplate"></div>
<NuxtLink :to="'/blog/post/' + this.template.info.slug">Read me</NuxtLink>
</div>
</template>
<script>
import MarkdownIt from 'markdown-it';
import MarkdownItAttrs from 'markdown-it-attrs';
const md = new MarkdownIt();
md.use(MarkdownItAttrs, {});
export default {
name: 'Post',
computed: {
renderedTemplate: function() {
return md.render(this.template.data);
}
},
props: ['template'],
}
</script>
<style lang="scss">
@import "~assets/main.scss";
</style>