- 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
14 lines
470 B
Vue
14 lines
470 B
Vue
<script setup lang="ts">
|
|
// A grid of post cards, or the empty-state text when there are none.
|
|
import type { JournalPost } from '../../utils/types.ts'
|
|
|
|
defineProps<{ posts: JournalPost[]; empty?: string }>()
|
|
</script>
|
|
|
|
<template>
|
|
<div class="journal-post-list">
|
|
<JournalPostCard v-for="post in posts" :key="post.id" :post="post" />
|
|
<p v-if="posts.length === 0" class="journal-post-list__empty">{{ empty ?? $t('journal.index.empty') }}</p>
|
|
</div>
|
|
</template>
|