add: category, date sorting

Add category layouts and date sorting
This commit is contained in:
webfussel 2025-06-12 09:08:21 +02:00
parent 91b59e4ebe
commit 9b66a79a8c
17 changed files with 2495 additions and 17729 deletions

View file

@ -1,9 +1,11 @@
<template>
<NuxtLink :to="link" class="BlogCard z-2">
<img :src="image" alt=" " aria-hidden="true" />
<div class="image">
<img :src="image" alt=" " aria-hidden="true" />
</div>
<div class="card-content">
<header>
<span class="chip">{{ category }}</span>
<span class="chip"><BlogCategory :name="category" /></span>
<h2>{{ title }}</h2>
<small>{{ description }}</small>
</header>
@ -22,6 +24,8 @@
</template>
<script setup lang="ts">
import type { Category } from './types'
type Props = {
title : string
description : string
@ -30,7 +34,7 @@ type Props = {
excerpt : { type: string, children?: any }
link : string
tags : string[]
category : string
category : Category
author : {
name : string
image : string