This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-05 08:32:06 -08:00
|
|
|
<template>
|
|
|
|
<NotFound v-if="!content"/>
|
|
|
|
<div v-else class="blog-post">
|
2021-10-31 07:55:15 -07:00
|
|
|
<LinksNav v-if="config.links.split"/>
|
|
|
|
<p v-else>
|
|
|
|
<router-link :to="'/' + config.links.blogRoute" v-if="config.links.blog">
|
|
|
|
<Icon v="pen-nib"/>
|
|
|
|
<T>links.blog</T>
|
|
|
|
</router-link>
|
|
|
|
</p>
|
2021-03-05 08:32:06 -08:00
|
|
|
|
2021-11-15 13:17:50 -08:00
|
|
|
<Spelling :text="content"/>
|
2021-04-14 10:17:57 -07:00
|
|
|
|
|
|
|
<Separator icon="heart"/>
|
|
|
|
|
|
|
|
<Support/>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<Share :title="title"/>
|
|
|
|
</section>
|
2021-03-05 08:32:06 -08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { head } from "../src/helpers";
|
2021-09-07 11:01:52 -07:00
|
|
|
import parseMarkdown from '../src/parseMarkdown';
|
2021-03-05 08:32:06 -08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
async asyncData({route}) {
|
2021-09-07 11:01:52 -07:00
|
|
|
return parseMarkdown((await import(`../data/blog/${route.params.slug}.md`)).default);
|
2021-03-05 08:32:06 -08:00
|
|
|
},
|
|
|
|
head() {
|
|
|
|
return head({
|
|
|
|
title: this.title,
|
|
|
|
banner: this.img,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "assets/variables";
|
|
|
|
|
|
|
|
.blog-post {
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 24rem;
|
|
|
|
padding: $spacer;
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
figcaption {
|
|
|
|
margin-top: $spacer / 2;
|
|
|
|
font-size: $small-font-size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.forms-grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(18rem, 3fr));
|
|
|
|
grid-gap: $spacer;
|
|
|
|
justify-items: center;
|
|
|
|
figure {
|
|
|
|
padding: 0;
|
|
|
|
figcaption {
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|