Skip to content

Instantly share code, notes, and snippets.

@zackproser
Last active November 17, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackproser/31ee3777c809108d268252c4a4931e19 to your computer and use it in GitHub Desktop.
Save zackproser/31ee3777c809108d268252c4a4931e19 to your computer and use it in GitHub Desktop.
<template>
<section :class="`section pb-0 bg-gradient-${this.getClassType()}`">
<div class="row row-grid">
<div class="col">
<div
class="container card card-lift--hover shadow border-0 mt-5"
>
<div class="row">
<h2 class="display-2 m-5">
{{ post.attributes.title }}
</h2>
<h4 class="post-date">
{{ post.attributes.date }}
</h4>
<div
class="card-body py-5"
v-html="post.html"
/>
</div>
</div>
</div>
</div>
</section>
</template>
<script>
export default {
layout: 'zack-proser',
name: 'SoftwareView',
async asyncData({ params }) {
try {
let post = await import(`~/posts/${params.slug}.md`)
return {
post
}
} catch (err) {
return false
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment