From e90b7329c4ec46606ae82df9d9fa7bc33ca63ddd Mon Sep 17 00:00:00 2001 From: dev sp Date: Thu, 18 Jan 2024 14:09:40 +0000 Subject: [PATCH] add publish date --- src/components/Footer.astro | 14 ++++++++++++-- src/pages/bn/index.astro | 3 ++- src/pages/bn/local/index.astro | 4 ++-- src/pages/bn/national/index.astro | 3 ++- src/pages/bn/politics/index.astro | 3 ++- src/pages/index.astro | 3 ++- src/pages/local/index.astro | 3 ++- src/pages/national/index.astro | 3 ++- src/pages/politics/index.astro | 3 ++- src/pages/technology/index.astro | 3 ++- 10 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 1f01198..71cd561 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -26,10 +26,20 @@ - +
Powered by DWD Consultancy Services
- \ No newline at end of file + + + + + \ No newline at end of file diff --git a/src/pages/bn/index.astro b/src/pages/bn/index.astro index d242c47..7a48104 100644 --- a/src/pages/bn/index.astro +++ b/src/pages/bn/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/bn/local/index.astro b/src/pages/bn/local/index.astro index bba2496..eda3a90 100644 --- a/src/pages/bn/local/index.astro +++ b/src/pages/bn/local/index.astro @@ -8,7 +8,6 @@ const metaJSON = await fetchMeta.json(); const items = metaJSON.data[0]; // const imageData = data.image; // const data = fetchDataJSON.data; -// console.log() --- Latest News
- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title}/ +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/bn/national/index.astro b/src/pages/bn/national/index.astro index a54ed5e..76b53bf 100644 --- a/src/pages/bn/national/index.astro +++ b/src/pages/bn/national/index.astro @@ -32,12 +32,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created: string | undefined;}) =>
{items.heading}

{items.title}

{items.title}/ +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/bn/politics/index.astro b/src/pages/bn/politics/index.astro index 79e17d9..ee5e3b9 100644 --- a/src/pages/bn/politics/index.astro +++ b/src/pages/bn/politics/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title}/ +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/index.astro b/src/pages/index.astro index 9a5d4c2..16b15d5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -31,12 +31,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/local/index.astro b/src/pages/local/index.astro index 8d481b8..1d8bb38 100644 --- a/src/pages/local/index.astro +++ b/src/pages/local/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/national/index.astro b/src/pages/national/index.astro index a0b06c3..74cda97 100644 --- a/src/pages/national/index.astro +++ b/src/pages/national/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/politics/index.astro b/src/pages/politics/index.astro index a742451..d2b9747 100644 --- a/src/pages/politics/index.astro +++ b/src/pages/politics/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}

diff --git a/src/pages/technology/index.astro b/src/pages/technology/index.astro index 6134fe5..7efc00e 100644 --- a/src/pages/technology/index.astro +++ b/src/pages/technology/index.astro @@ -33,12 +33,13 @@ const items = metaJSON.data[0];

Latest News

- {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) => + {data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined;}) =>
{items.heading}

{items.title}

{items.title} +

Publish at: {items.date_created.split(':')[0].split('T')[0]}