fix article list

This commit is contained in:
lightling 2024-11-04 17:12:42 -05:00
parent fbaf68087e
commit ab671c2782
Signed by: lightling
GPG key ID: F1F29650D537C773
5 changed files with 17 additions and 63 deletions

View file

@ -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

View file

@ -142,6 +142,6 @@ onMounted(async () => {
:id='id'
:viewPath='viewPath'
:isInternal='true'
:entry='entry'
:entry='entry.entry'
)
</template>