Skip to content

Commit

Permalink
fix: use placeholder image only when an image does not exist in the d…
Browse files Browse the repository at this point in the history
…estination folder—that is, new posts
  • Loading branch information
arunsathiya committed Sep 3, 2024
1 parent 7310aff commit 6bae86c
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 22 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: "WWDC21 was quite nice. Apple announced updates to their iOS, iPadO
pubDate: 'Jun 08 2021'
updatedDate: 'Sep 03 2024'
tags: ['Tools']
coverImage: './image.webp'
---

Last night was fun. Apple's WWDC21 event announced multiple software updates across their iOS, MacOS, iPadOS and watchOS platforms. I enjoyed the full keynote, particularly the part where they announced the new iCloud+ subscription. The Health-related segments were arduously long though.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Opt out WiFi from Google and Microsoft location tracking'
slug: 'opt-out-wifi-google-microsoft-location-tracking'
description: "For over a decade, Google has been using WiFi information for location tracking purposes. Learn how to opt out from Google's and Microsoft's."
pubDate: 'Jun 15 2021'
updatedDate: 'Sep 02 2024'
updatedDate: 'Sep 03 2024'
tags: ['Security']
coverImage: './image.webp'
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/2021-06-22-day-one/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Day One: My new private blogging app'
slug: 'day-one'
description: 'Day One is my new favorite private blogging app.'
pubDate: 'Jun 22 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'Content Management']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'macOS Monterey, iOS 15: My Apple betas experience'
slug: 'my-apple-betas-experience'
description: 'I downloaded macOS Monterey and iOS 15 when the public Apple betas were announced two days ago. Read on to see how my experience has been.'
pubDate: 'Jul 06 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Infrastructure']
coverImage: './image.webp'
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/2021-08-10-zoom-live-captions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Zoom live captions'
slug: 'zoom-live-captions'
description: 'If you have a premium account on Zoom, enable live captions for an accessible call for everyone.'
pubDate: 'Aug 10 2021'
updatedDate: 'Sep 02 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Excluding draft posts from search index'
slug: 'excluding-draft-posts'
description: 'If you are looking for a way to excluding draft posts from being indexed on the search engines, Yoast SEO offers filters to achieve that.'
pubDate: 'Aug 13 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Automation']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Growing my home lab - Tailscale TLS certificates for each Docker with
slug: 'tailscale-tls-certificates-for-my-home-lab'
description: 'I am starting to grow my home lab with Raspberry Pi, Docker, Caddy and Tailscale. Right now, I have Whoogle, libreddit, pihole and Caddy running on my nodes.'
pubDate: 'Sep 27 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'DevOps']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Thoughts on WordPress Full Site Editing'
slug: 'thoughts-on-wordpress-full-site-editing'
description: "I recently redesigned my website's homepage and blog post views using the new WordPress Full Site Editing experience. Read about my experience on this post."
pubDate: 'Sep 28 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Content Management', 'Tools', 'OSS']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Thoughts on the 1Password-Fastmail partnership'
slug: 'thoughts-on-the-1password-fastmail-partnership'
description: '1Password announced a partnership with Fastmail to generate unique email aliases within the 1Password apps. But, did you know that SimpleLogin is better?'
pubDate: 'Oct 06 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'Security', 'Privacy']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Storing 2FA codes on my 1Password'
slug: 'storing-2fa-codes-on-my-1password'
description: "Storing 2FA codes on a password manager doesn't equal placing all eggs in the same basket. That's because password managers come with unique security features."
pubDate: 'Oct 09 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'Privacy', 'Security']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'jq magic to create contacts for SimpleLogin aliases'
slug: 'jq-magic-to-create-contacts-for-simplelogin-aliases'
description: "If you are using SimpleLogin to create unique email aliases, here's a hacky workaround using jq to create contact reverse alias from your terminal application."
pubDate: 'Oct 11 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Automation']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'dnsmasq - Custom DNS resolvers for specific domains'
slug: 'dnsmasq-custom-dns-resolvers-for-specific-domains'
description: "It's possible to setup custom DNS resolvers for certain domains using a dnsmasq config file. Requests still pass through pihole, for ad-blocking capabilities."
pubDate: 'Oct 30 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Automation']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Private Among Us games on the Tailscale network'
slug: 'private-among-us-games-on-the-tailscale-network'
description: 'Learn how to setup private Among Us games using Impostor and Tailscale. This enables you to host custom games without depending on the official servers.'
pubDate: 'Nov 04 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'Automation']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Free, private pi-hole hosting with Fly.io and Tailscale'
slug: 'private-pi-hole-hosting-fly-tailscale'
description: 'Fly.io'
pubDate: 'Nov 22 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Tools', 'Automation']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Setting up password managers for family and friends'
slug: 'setting-up-password-manager-for-family-and-friends'
description: 'If you are visiting friends and family this holiday season, try educating them on the value of password managers. Bitwarden is a great start as it is free!'
pubDate: 'Dec 06 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Security', 'Tools']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Proprietary email platforms and open standards for email'
slug: 'proprietary-email-platforms-and-open-standards-for-email'
description: 'Platforms like Gmail, Yahoo and Outlook have made it very easy to own and manage a mailbox, but I think we should be focusing on educating open standards.'
pubDate: 'Dec 07 2021'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['OSS', 'Privacy', 'Tools']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'One-click emoji reactions on Slack'
slug: 'one-click-emoji-reactions-on-slack'
description: 'Slack has a workspace-level feature to allow members to configure their top 3 emoji for quick reactions.'
pubDate: 'Jan 18 2022'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Networking', 'Productivity']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'I am rooting for DuckDuckGo'
slug: 'rooting-for-duckduckgo'
description: 'DuckDuckGo is growing fast with a suite of products including DuckDuckGo Email Protection, App Tracking Protection and a fantastic search engine. Exciting days!'
pubDate: 'Jan 28 2022'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Privacy']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'SSH setup of the future'
slug: 'ssh-setup-of-the-future'
description: 'My SSH setup with 1Password and Tailscale'
pubDate: 'Jul 08 2022'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Security']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Patching hundreds of GitHub repositories in seconds'
slug: 'patch-github-with-api'
description: 'Using GitHub API to commit patches and generate pull requests.'
pubDate: 'Jan 27 2024'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['DevOps', 'Automation', 'APIs']
coverImage: './image.webp'
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/2024-02-21-notion-as-a-cms/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Notion as a CMS'
slug: 'notion-as-a-cms'
description: 'I am testing Notion as a CMS for my portfolio site. At this time, only blog posts are controlled from Notion but I can expand to projects and other aspects.'
pubDate: 'Feb 21 2024'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Productivity', 'Content Management', 'APIs']
coverImage: './image.webp'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ seoTitle: 'Whisper API for voice to text conversion'
slug: 'whisper-api-implementations'
description: "This post details my streamlined method for using OpenAI's Whisper speech recognition model via the ChatGPT iOS app, seamlessly transferring the results to my MacBook. I explore the advantages of this approach over other implementations and share my efficient workflow using Apple's Universal Clipboard feature."
pubDate: 'Mar 11 2024'
updatedDate: 'Aug 31 2024'
updatedDate: 'Sep 03 2024'
tags: ['Whisper', 'AI', 'APIs', 'Productivity', 'OSS']
coverImage: './image.webp'
---
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/notion-to-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async function processPage(page: PageObjectResponse) {

const sourceImagePath = './src/scripts/image.webp';
const destinationImagePath = path.join(dir, 'image.webp');
if (fs.existsSync(sourceImagePath)) {
if (fs.existsSync(sourceImagePath) && !fs.existsSync(destinationImagePath)) {
fs.copyFileSync(sourceImagePath, destinationImagePath);
} else {
console.warn(`Warning: image.webp not found in scripts folder`);
Expand Down

0 comments on commit 6bae86c

Please sign in to comment.