Skip to content

Commit

Permalink
Removed heorIamge from blog list
Browse files Browse the repository at this point in the history
  • Loading branch information
UnresolvedCold committed Feb 17, 2024
1 parent 2da40d1 commit f597939
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions create-new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ echo "#+AUTHOR: John Doe" >> $new_file
echo "#+DATE: $file_date" >> $new_file
echo "#+PROPERTY: description: $name" >> $new_file
echo "#+PROPERTY: draft: true" >> $new_file
echo "#+PROPERTY: heroImage: /hero-images/default.png" >> $new_file
# Enable this to get a hero image
# echo "#+PROPERTY: heroImage: /hero-images/default.png" >> $new_file
echo "#+PROPERTY: ideaDate: $date" >> $new_file
echo "" >> $new_file
echo "* Introduction" >> $new_file

# Result
echo "Starter file generated!"
echo "Happy Blogging"
echo "Happy Blogging"
3 changes: 2 additions & 1 deletion src/components/HorizontalCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function getAbstractColor(title: string) {
>
<a href={url} target={target}>
<div class="hero-content flex-col md:flex-row">
{
{ /*
(img && (
<Image
src={img}
Expand All @@ -56,6 +56,7 @@ function getAbstractColor(title: string) {
</span>
</div>
)
*/
}

<div class="grow w-full">
Expand Down
1 change: 0 additions & 1 deletion src/content/blog/2024-02-06-jmespath-emacs-library.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ AUTHOR: Shubham Kumar
DATE: 2024-02-06
description: Querying JSON files/data using Jmespath library in Emacs
draft: false
heroImage: /hero-images/default.png
ideaDate: Feb 06, 2024
pubDate: 2024-02-07T03:30:13Z
---
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const posts = (await getCollection("blog")).sort((a, b) => {
return b_date.valueOf() - a_date.valueOf()
});
const last_posts = posts.slice(0, 3);
const last_posts = posts.slice(0, 5);
---

<BaseLayout sideBarActiveItemID="home">
Expand All @@ -29,7 +29,7 @@ const last_posts = posts.slice(0, 3);
</div>
</div>

<div class="text-3xl font-bold">My recent posts, </div>
<div class="text-3xl font-bold">My recent posts </div>
{
last_posts.map((post) => (
<>
Expand Down

0 comments on commit f597939

Please sign in to comment.