- index and category pages paginate with ?page=N and 404 out of range - category content renders above the list through the html gate - related posts fall back to the latest posts - --journal-* tokens and neutral base styles - pl/en strings registered only for locales the app enables
12 lines
473 B
Vue
12 lines
473 B
Vue
<script setup lang="ts">
|
|
// A post's featured image. The intrinsic width/height reserve space before
|
|
// the image loads; the rendered size and crop come from --journal-image-ratio.
|
|
defineProps<{ src: string | null | undefined; alt: string; eager?: boolean }>()
|
|
</script>
|
|
|
|
<template>
|
|
<figure v-if="src" class="journal-featured-image">
|
|
<img :src="src" :alt="alt" width="1200" height="630" :loading="eager ? 'eager' : 'lazy'" decoding="async" />
|
|
</figure>
|
|
</template>
|