diff --git a/src/component/Blog/Blog/Main.js b/src/component/Blog/Blog/Main.js index 2a7122e..d136d3c 100644 --- a/src/component/Blog/Blog/Main.js +++ b/src/component/Blog/Blog/Main.js @@ -8,8 +8,8 @@ const Main = ({ brdcum, bgimg }) => { const api = new SiteService(); useEffect(() => { - getBlogData(); - }, []); + if(blogData.length===0){getBlogData()}; + }, [blogData]); const getBlogData = async () => { try { @@ -69,14 +69,14 @@ const Main = ({ brdcum, bgimg }) => {
{blogData.map((data,index) => { - if (index == 0){ + if (index === 0){ return (
{ if (index > 0){ return (
-
+
image {new Date (data && data.post_date).toDateString()} diff --git a/src/component/Blog/BlogSingle/Main.js b/src/component/Blog/BlogSingle/Main.js index 8236ad5..5bc9187 100644 --- a/src/component/Blog/BlogSingle/Main.js +++ b/src/component/Blog/BlogSingle/Main.js @@ -101,42 +101,8 @@ const Main = ({brdcum}) => {

{data && data.post_name}

- {/*
-

Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.

-

Printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unnown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys centuries, but also the leap into electronic.

-

Why we are best

-

Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic.

-
    -
  • Lorem Ipsum is simply dummy text of the printing and typesetting in

  • -
  • Dustry lorem Ipsum has been the industrys standard dummy text ev er since the when

  • -
  • Unknown printer took a galley of type and scrambled it to make.

  • -
  • Type specimen book. It has survived not only five centuries, but also the leap into electronic.

  • -
  • Lorem Ipsum is simply dummy text of the printing.

  • -
  • Dustry lorem Ipsum has been the industrys standard dummy text ev er since.

  • -
  • Unknown printer took a galley of type and scrambled it to make.

  • -
  • Type specimen book. It has survived not only.

  • -
-
-
-
-
- image -
-
- image -
-
-
-
-

Why we are best

-

Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.

-
-
- image -

Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy.

-

Mr. John Doe, Apper Inc

-
*/} - {/*

Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic industry.

*/} + +
{/*