@@ -46,10 +46,10 @@ const items = data[idx];
Share on:
-

-

-

-

+

+

+

+
{items.content}
diff --git a/src/pages/en/cat/index.astro b/src/pages/en/cat/index.astro
new file mode 100644
index 0000000..95ee13b
--- /dev/null
+++ b/src/pages/en/cat/index.astro
@@ -0,0 +1,21 @@
+---
+import Layout from "../../../layouts/Layout.astro"
+import ENCategory from "../../../components/ENCategory.vue";
+const postData = { key1: 'value1', key2: 'value2'};
+const options = { method: 'POST', headers: { 'Content-Type': 'application/json', 'Origin': 'https://2024.dev2-cs.siliconpin.com' }, body: JSON.stringify(postData)};
+const response = await fetch('https://apisp.dev2.cicdhosting.com/_dedicated/dwd/get-news/?action=news_en', options);
+const data = await response.json();
+const news = data;
+// console.log(news);
+---
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/en/file.astro b/src/pages/en/file.astro
deleted file mode 100644
index 03e93fb..0000000
--- a/src/pages/en/file.astro
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
sqjns
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/en/index.astro b/src/pages/en/index.astro
index 4b06413..5ca8383 100644
--- a/src/pages/en/index.astro
+++ b/src/pages/en/index.astro
@@ -5,7 +5,7 @@ const options = { method: 'POST', headers: { 'Content-Type': 'application/json',
const response = await fetch('https://apisp.dev2.cicdhosting.com/_dedicated/dwd/get-news/?action=news_en', options);
const data = await response.json();
const news = data;
-console.log(news);
+// console.log(news);
---
@@ -14,6 +14,13 @@ console.log(news);
Latest News
+
{news.map((items: {id: string | undefined; heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined; date_created : string | undefined; in_brief: string | undefined;}) =>
@@ -36,7 +43,7 @@ console.log(news);