fix article list
This commit is contained in:
parent
fbaf68087e
commit
ab671c2782
5 changed files with 17 additions and 63 deletions
|
@ -14,7 +14,8 @@ const props = defineProps<{
|
|||
}>()
|
||||
|
||||
const resolved = ref({} as ArticleEntry)
|
||||
//const thumbnail = computed(() => resolved.value.thumbnail)
|
||||
const thumbnail = computed(() => resolved.value.thumbnailUrl)
|
||||
const altText = computed(() => resolved.value.alternativeText)
|
||||
const description = computed(() => marked.parse(resolved.value.description || ''))
|
||||
const date = computed(() => !!resolved.value.date ? getFormattedDate(resolved.value.date) : null)
|
||||
const title = computed(() => marked.parse(resolved.value.title || props.id))
|
||||
|
@ -51,8 +52,9 @@ mixin embedText
|
|||
v-if='!!thumbnail'
|
||||
)
|
||||
+link
|
||||
.thumbnail(
|
||||
:style='thumbnail.style'
|
||||
img.thumbnail(
|
||||
:src='thumbnail'
|
||||
:alt='altText'
|
||||
)
|
||||
.text-wrapper
|
||||
+link
|
||||
|
|
|
@ -142,6 +142,6 @@ onMounted(async () => {
|
|||
:id='id'
|
||||
:viewPath='viewPath'
|
||||
:isInternal='true'
|
||||
:entry='entry'
|
||||
:entry='entry.entry'
|
||||
)
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue