add category page

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2022-12-08 23:11:31 +06:00
parent cd868f7b43
commit 7fc5639e55
4 changed files with 29 additions and 1 deletions

View File

@@ -1 +1,18 @@
# Hello ts ---
title: Hello, World
author: riyad
date: 10:11:12
category: js
summery: sdklfjsld
---
# Hi there!
This Markdown file creates a page at `your-domain.com/page-1/`
It probably isn't styled much, but Markdown does support:
- **bold** and _italics._
- lists
- [links](https://astro.build)
- and more!

View File

@@ -0,0 +1,5 @@
<template>
<div>
<h1>This is the {{ $route.params.topic }}</h1>
</div>
</template>

View File

@@ -1,5 +1,11 @@
<script setup lang="ts">
const { data } = await useAsyncData("home", () => queryContent("/").find());
console.log(data);
</script>
<template> <template>
<div> <div>
<p class="text-5xl">Latest Page</p> <p class="text-5xl">Latest Page</p>
<pre>{{ data }}</pre>
</div> </div>
</template> </template>