Hey, I’ve been trying to improve the Hugo template that I created for this blog, and one of the things I wanted to do was inject the contents of an index.css file into a index.amp.html layout file - Accelerated Mobile Pages (AMP) requires us to have our custom styles inlined in the HTML (see Custom Amp Styles). Here I go through a way of achieving that - using awk - and a way of not achieving that - using sed (naively). If you ever need to template a file with contents of another, this gist...