Skip to content

Commit

Permalink
fix: 尝试修复水合问题
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Jul 22, 2023
1 parent 18f7f1b commit 5c8dad5
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions components/PostItem.vue
Original file line number Diff line number Diff line change
@@ -1,38 +1,30 @@
<template>
<p class="blog-item" @click="openBlog(PostURL)">
<!-- <i class="pin" v-if="!!pin"></i> -->
<!-- 标题 -->
<p class="title" v-if="inMobile">{{ Title }}</p>
<div class="blog-item" @click="openBlog(PostURL)">
<div class="title" v-if="inMobile">{{ Title }}</div>
<div class="info-container">
<!-- 左侧信息 -->
<div class="info-part">
<!-- 标题 -->
<p class="title" v-if="!inMobile">{{ Title }}</p>
<!-- 简短描述 -->
<p class="description" v-if="!!Content">
<div class="title" v-if="!inMobile">{{ Title }}</div>
<div class="description" v-if="!!Content">
{{ Content }}
</p>
<!-- 底部补充描述 -->
</div>
<div class="badge-list" v-if="!inMobile">
<a class="split" v-if="Author" :href="withBase(AuthorURL)" @click.stop target="_blank">{{ Author }}</a>
<span class="split">{{ showTime }}</span>
<span class="split" v-if="tag?.length">{{ tag.join(' · ') }}</span>
</div>
</div>
<!-- 右侧封面图 -->
<div
v-if="cover"
class="cover-img"
:style="`background-image: url(${cover});`"
></div>
</div>
<!-- 底部补充描述 -->
<div class="badge-list" v-if="inMobile">
<a class="split" v-if="Author" :href="withBase(AuthorURL)" @click.stop target="_blank">{{ Author }}</a>
<span class="split">{{ showTime }}</span>
<span class="split" v-if="tag?.length">{{ tag.join(' · ') }}</span>
</div>
</p>
</div>
</template>
<script setup>
Expand Down

0 comments on commit 5c8dad5

Please sign in to comment.