- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Tenetur - reprehenderit sit possimus quibusdam ad facilis, consectetur beatae - inventore sunt non. + {{ description }}
-
Read More
->>
diff --git a/content/js/hellojs.md b/content/js/hellojs.md
index 0263807..15d7478 100644
--- a/content/js/hellojs.md
+++ b/content/js/hellojs.md
@@ -1,6 +1,6 @@
---
title: "Title of the page"
-description: "meta description of the page"
+description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley"
draft: false
head: true
author: riyad
diff --git a/pages/latest.vue b/pages/latest.vue
index 118bc58..0f81273 100644
--- a/pages/latest.vue
+++ b/pages/latest.vue
@@ -2,7 +2,28 @@
definePageMeta({
layout: "list",
});
+
const { data } = await useAsyncData("home", () => queryContent("/").find());
+
+const getRecentContent = computed(() => {
+ const allpost = data.value || [];
+ const alltypes = allpost.map((post) => {
+ return {
+ title: post.title,
+ description: post.description,
+ path: post._path,
+ date: post.date as string,
+ author: post.author,
+ };
+ });
+
+ alltypes.sort(function (a, b) {
+ const c = new Date(a.date);
+ const d = new Date(b.date);
+ return c < d ? 1 : -1;
+ });
+ return alltypes;
+});
@@ -11,7 +32,15 @@ const { data } = await useAsyncData("home", () => queryContent("/").find());
LATEST CONTENT