- This is the card title + {{ title }}
- {{ excerpt }} + {{ description }}
Read More
diff --git a/content/blogs/1. hello-world.md b/content/blogs/1. hello-world.md index 6981279..9d0f02d 100644 --- a/content/blogs/1. hello-world.md +++ b/content/blogs/1. hello-world.md @@ -1,6 +1,8 @@ --- title: 'Title of the page' description: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima eum, odit earum porro beatae explicabo quisquam asperiores aliquam similique ipsam non deleniti qui sint ad maxime culpa accusantium. Deleniti.' +time: 10Jan2022 +tags: ['sdf', 'sdf', 'sdf'] --- ::CustomTitle diff --git a/content/blogs/2. hello-man.md b/content/blogs/2. hello-man.md index 2bde72c..f469ffe 100644 --- a/content/blogs/2. hello-man.md +++ b/content/blogs/2. hello-man.md @@ -1,6 +1,7 @@ --- title: 'Title of the page' description: 'meta description of the page' +time: 2Jan2022 --- # BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB diff --git a/content/blogs/3. intro-to-nuxt.md b/content/blogs/3. intro-to-nuxt.md index d18e420..4fc5107 100644 --- a/content/blogs/3. intro-to-nuxt.md +++ b/content/blogs/3. intro-to-nuxt.md @@ -1,6 +1,7 @@ --- title: 'Title of the page' description: 'meta description of the page' +time: 4Nov2022 --- # CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc diff --git a/content/blogs/4. intro-to-vue.md b/content/blogs/4. intro-to-vue.md index 30d7f34..5e506e6 100644 --- a/content/blogs/4. intro-to-vue.md +++ b/content/blogs/4. intro-to-vue.md @@ -1,6 +1,7 @@ --- title: 'Title of the page' description: 'meta description of the page' +time: 1Oct2022 --- # DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD diff --git a/content/blogs/5. intro-to-ts.md b/content/blogs/5. intro-to-ts.md index 215aeb4..29dc957 100644 --- a/content/blogs/5. intro-to-ts.md +++ b/content/blogs/5. intro-to-ts.md @@ -1,6 +1,7 @@ --- title: 'Title of the page' description: 'meta description of the page' +time: 1Jan2023 --- # Hello man diff --git a/pages/index.vue b/pages/index.vue index 15067ab..552d4b4 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -7,16 +7,26 @@ useHead({ content: 'Home', }, ], - titleTemplate: "Elon's Blog - %s", + titleTemplate: "Riyad's Blog - %s", }) -const { data } = await useAsyncData('home', () => queryContent('/blogs').find()) + +// Get Last 6 Publish Post from the content/blog directory +const { data } = await useAsyncData('home', () => + queryContent('/blogs').limit(6).sort({ _id: -1 }).find() +)