diff --git a/src/components/blog/index.jsx b/src/components/blog/index.jsx index a6ace04..04586a2 100644 --- a/src/components/blog/index.jsx +++ b/src/components/blog/index.jsx @@ -3,6 +3,7 @@ import { Fragment, useEffect, useState } from 'react'; import { ga, skeleton } from '../../helpers/utils'; import LazyImage from '../lazy-image'; import PropTypes from 'prop-types'; +import { AiOutlineContainer } from 'react-icons/ai'; import { getDevPost, getMediumPost } from '@arifszn/blog-js'; const displaySection = (blog) => { @@ -98,8 +99,7 @@ const Blog = ({ loading, blog, googleAnalytics }) => { }; const renderArticles = () => { - return ( - articles && + return articles && articles.length ? ( articles.slice(0, blog.limit).map((article, index) => ( { )) + ) : ( +
No recent post
+