Skip to content

Commit e345f2f

Browse files
authored
Merge pull request #11 from ameen4455/feature_image_placeholder
Placeholder for blog thumbnail
2 parents 3bb55e1 + 60a95cf commit e345f2f

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

src/components/common/PostCardBlog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const PostCardBlog = ({ post, number }) => {
1212
<Link to={url} id="post-card" className="mb-4 w-full flex flex-col md:flex-row items-center pb-5 border-b-2 md:border-0">
1313
<div className=" md:w-1/3 md:mr-4">
1414
<img
15-
src={post.feature_image || post.og_image}
15+
src={post.feature_image || post.og_image || "/images/blog_placeholder_image.png"}
1616
className={
1717
"aspect-video w-full rounded object-cover max-w-xl"
1818
}
@@ -46,7 +46,7 @@ const PostCardBlog = ({ post, number }) => {
4646
</Link>
4747
)}
4848
</div>
49-
<footer className="flex text-sm font-light">
49+
<footer className="flex text-sm pb-4 font-light">
5050
<div className="mr-3 text-iff-orange">
5151
<span>{post.published_at_pretty}</span>
5252
</div>

src/templates/post.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,6 @@ const Post = ({ data, location }) => {
8888
</div>
8989
</div>
9090
</div>
91-
92-
<div className="relative blog-feature_image">
93-
<div
94-
className={
95-
"w-full p-4 md:p-0 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8"
96-
}
97-
>
98-
<img
99-
src={post.feature_image}
100-
className=" rounded-md w-full lg:max-w-4xl mx-auto"
101-
alt=""
102-
/>
103-
</div>
104-
</div>
105-
10691
<article
10792
className="mt-16 mx-auto prose md:prose-lg prose-img:rounded-xl prose-img:shadow-xl hover:prose-headings:underline underline-offset-4 hover:prose-a:text-iff-orange px-4 select-none"
10893
dangerouslySetInnerHTML={{ __html: post.html }}
28.5 KB
Loading

0 commit comments

Comments
 (0)