<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>publishing on Warkruid's Weeds</title><link>https://www.warkruid.com/categories/publishing/</link><description>Recent content in publishing on Warkruid's Weeds</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 16 Jul 2023 11:06:50 +0200</lastBuildDate><atom:link href="https://www.warkruid.com/categories/publishing/index.xml" rel="self" type="application/rss+xml"/><item><title>Generate Banners With Random Backgrounds</title><link>https://www.warkruid.com/generate-banners-with-random-backgrounds/</link><pubDate>Sun, 16 Jul 2023 11:06:50 +0200</pubDate><guid>https://www.warkruid.com/generate-banners-with-random-backgrounds/</guid><description>I sometimes want to use a image background for a certain text banner.
Or use a pictures as a placeholder for an image I will add later.
Usually that meant I had to choose an image that I already had on my HD and resize it and add the text to it.
Boring!
So when I stumbled on https://picsum.photos I quickly hacked together a script that grabbed a random image from picsum, and added a text to it.</description></item><item><title>Make and Hugo</title><link>https://www.warkruid.com/make-and-hugo/</link><pubDate>Sat, 02 Apr 2022 20:49:25 +0200</pubDate><guid>https://www.warkruid.com/make-and-hugo/</guid><description>After a bit of experimenting with Hugo on the command line I quickly grew tired of typing in long and complex commandlines. Especially the commandline to push the repo to github was a special PITA.
So.. I made a quick and dirty Makefile which simplified things a bit.
SHELL=/bin/bash # make sure Make does not barf on unknown command %: #: # macro to read argument args = `arg=&amp;#34;$(filter-out $@,$(MAKECMDGOALS))&amp;#34; &amp;amp;&amp;amp; echo $${arg:-${1}}` test: build hugo server -D build: git pull hugo # make a new post post: hugo new posts/$(call args,&amp;#34;defaultstring&amp;#34;) git add content/en/posts/$(call args,&amp;#34;defaultstring&amp;#34;) # push to github with TOKEN read from environment push: git push https://warkruid:$(TOKEN)@github.</description></item></channel></rss>