Introduction As others may know, I am a big fan of debian. I like it because of it’s consistency and when I want to reproduce a project, it is very easy to lift my work from one machine to another. Well. Except when that software is built from source or downloaded from their Github because the package repository either doesn’t have it, or if it does, it doesn’t have the latest version. Hugo has been one of those problems. ...
Adding 2 lines to Every File in a Directory
Introduction Quickly wanted to write about a method I used to extract 2 lines from one of my posted and add it to all my other posts. clip=$(sed -n '5,6p' file-with-option.md) ls -1 | xargs -i sed -i "4a $clip" {} Quick explaination. We are saving the lines 5 and 6 from our desired file into $clip. Then we list all the files without fuzz, pipe them to xargs and set to run the commands individually, appending our $clip variable to line 4 ...
Getting Started with Hugo
Introduction Getting started with static site generators I had a few qualifications. Portability, no NodeJS, and manage everything from text files. Installed the extended version using the .deb file and then installed the PaperMod theme hugo new site MyFreshWebsite --format yaml git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod git submodule update --init --recursive git submodule update --remote --merge echo 'theme: ["PaperMod"]' >> hugo.yaml