diff --git a/src/components/BlogPostPreview.vue b/src/components/BlogPostPreview.vue index 8136262..5430744 100644 --- a/src/components/BlogPostPreview.vue +++ b/src/components/BlogPostPreview.vue @@ -5,6 +5,7 @@
{{meta.title}}
{{meta.subtitle}}
+ Title Image
展开...
@@ -41,6 +42,9 @@ export default class BlogPostPreview extends Vue // }) } } + + get image(): string | null + { return this.meta.title_image ? hosts.content + '/' + this.meta.title_image : null } } @@ -65,6 +69,14 @@ export default class BlogPostPreview extends Vue font-size: 0.8em color: $color-text-light + img + $margin: 10px + max-width: calc(100% + 2 * $margin) + min-width: calc(100% + 2 * $margin) + border-radius: 10px + margin-left: -$margin + margin-right: -$margin + #expand font-size: 0.8em padding-top: 10px