Collecting my attempts to improve at tech, art, and life

Buy My Stuff At Design by Hümans

Tags: drawing buy-me ssg

cover-buy-my-stuff-at-design-by-humans.png

I opened a store and set up Hugo to warn me when I forget purchase links.

Well, one design. I only got things going yesterday, with a quick sketch on a plain white background. Future plans include adjusting old designs and creating new ones for the store, with an intended pace of roughly one design per week.

Of course I already worked out the site integration. Everything on Random Geekery tagged “buy me” should have a direct link to its page on the store. I get a lovely Hugo errorf message if I forget the link.

{{- if in .Params.tags "buy me" -}}
  {{- if isset .Params "purchase" -}}
	{{- with .Params.purchase -}}
	  <p class="cover-link">
		<a href="{{ .url }}" target="_blank">{{ .caption }}</a>
	  </p>
	{{- end -}}
  {{- else -}}
	{{ errorf "%s Tagged 'buy me' without purchase front matter!" .File.Path }}
  {{- end -}}
{{- end -}}

My partial is a little clunky, but it worked. I can improve it later.

ℹ️ Note

And then a couple weeks later I realized my needs would be better served by a new section than by a tag.