[S] Put title image on top

This commit is contained in:
Hykilpikonna
2021-12-26 13:08:39 -05:00
parent 32e5964e6d
commit d6cdfde1f0
+5 -3
View File
@@ -1,11 +1,11 @@
<template>
<div id="BlogPostPreview" class="card">
<img :src="image" v-if="image" alt="Title Image">
<div id="date">{{meta.date}}</div>
<div id="titles">
<div id="title">{{meta.title}}</div>
<div id="subtitle" v-if="meta.subtitle">{{meta.subtitle}}</div>
</div>
<img :src="image" v-if="image" alt="Title Image">
<div id="preview" class="markdown-content" v-html="preview"></div>
<div id="expand" v-if="meta.more_content">展开...</div>
</div>
@@ -76,15 +76,17 @@ export default class BlogPostPreview extends Vue
color: $color-text-light
img
$margin: 10px
$margin: 20px
max-width: calc(100% + 2 * $margin)
min-width: calc(100% + 2 * $margin)
border-radius: 10px
margin-left: -$margin
margin-right: -$margin
margin-top: -15px
margin-bottom: 10px
#expand
font-size: 0.8em
padding-top: 10px
color: $color-text-light
</style>