Hugo: Batch script to deploy to GitHub after cleaning the output public dir (static-site's root)

Following the “2 repo” approach of hugo site as described in previous post How to create Hugo Blog hosted on GitHub: First repo for hugo-project Second repo for the static site (public dir in hugo project is created as git submodule I came across this approach first here. When using this approach, I tried to do cleanup of public directory after some inital builds, because in previous builds they were many folders and files created which I no longer wanted to be present on root of generated site(these were things like multiple folders for images - later I wanted to put all images under single directory), but in subsequent builds using hugo command these files and directories were not getting removed....

April 22, 2022 · 3 min · Anant

Renaming remote git repo

If you had a local repo and a remote repo connected to it (say on GitHub) - and for some reason you decide to change the repo name on remote, what do you need to do locally to keep things working? (as push/fetch/pull from local start to fail due to rename) Rename the remote repo(1,2), and then tweak the local repo(3,4,5) so that things work as expected: Go to the remote host (for example, https://github....

April 22, 2022 · 2 min · Anant

Free Svg Favicon Generator From Text

https://formito.com/tools/favicon

April 20, 2022 · 1 min · Anant

Free Favicon Generator From Text

redketchup.io has a free favicon generator(only generates PNG) I also used for it this blog. Edit: replaced with better SVG generator

April 20, 2022 · 1 min · Anant

Best way to add image in markdown file in VSCode - using VSCode plugin 'Paste Image'

Greatly simplifies working with images in md file in VSCode, and IMO one of the best ways to create blog post md in VSCode When working on a blog post that is written in .md, adding an image in the .md file can be tedious. You can point to an image by its URL: ![alt-text](<url-of-image>) Alternatively you can place the image locally in static folder in hugo project root, as described in How to add image to a Hugo blogpost...

April 20, 2022 · 2 min · Anant