This repository was archived by the owner on May 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathPost.vue
68 lines (60 loc) · 1.49 KB
/
Post.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template>
<div id="vuepress-theme-blog__post-layout">
<article
class="vuepress-blog-theme-content"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<header>
<h1 class="post-title" itemprop="name headline">
{{ $frontmatter.title }}
</h1>
<PostMeta
:tags="$frontmatter.tags"
:author="$frontmatter.author"
:date="$frontmatter.date"
:location="$frontmatter.location"
/>
</header>
<Content itemprop="articleBody" />
<footer>
<Newsletter v-if="$service.email.enabled" />
<hr />
<Comment />
</footer>
</article>
<Toc />
</div>
</template>
<script>
import Toc from '@theme/components/Toc.vue'
import PostMeta from '@theme/components/PostMeta.vue'
import { Comment } from '@vuepress/plugin-blog/lib/client/components'
export default {
components: {
Toc,
PostMeta,
Comment,
Newsletter: () => import('@theme/components/Newsletter.vue'),
},
}
</script>
<style lang="stylus">
@require '../styles/wrapper.styl'
.vuepress-blog-theme-content
@extend $wrapper
font-size 16px
letter-spacing 0px
font-family PT Serif, Serif
color $textColor
position relative
@media (min-width: $MQNarrow)
box-shadow 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.07)
.post-title
padding-top 0
@media (max-width: $MQMobile)
.vuepress-blog-theme-content
padding-top 0
.post-title
margin-top 0
</style>