Skip to main content

Recent Posts (Page %!s(int=19))

Hyper Shell

Hyper Shell

There is nothing, you can’t do with Electron, apparently. Newest proof is Hyper, a shell inside of Electron (you read that right). Developed by Vercel, the app is theme-able and extensible by plugins, like any other Electron app. It doesn’t look though like any init scripts like .

stefanjudis.com

You got to…

… subscribe to Stefan Judis’ Newsletter (click this link, load his site, scroll to the footer and subscribe). Trust me. It’s good. Weekly. His topics touch everything web development related and there is never an issue from which I don’t learn something new.

Converting frontmatter in GoHugo

Converting frontmatter in GoHugo

Some days ago I realised, that I keep all my configurations for GoHugo in the TOML format, while using YAML for the frontmatters in my content folder. That did not seem right ;) so I changed those too to TOML.

Photo by Yancy Min via Unsplash

Learning to git with git

I like to learn things by doing them. Recently I found a couple of interesting game formats that teach certain aspects of full stack developer’s life by playing a game. Let’s play? Oh My Git! is a game to learn Git, by using Git.

Photo by Mick Haupt via Unsplash

Print ordinal date suffixes (1st/2nd/3rd/4th) in GoHugo

Golangs $date.Format is unable to add ordinal suffixes to dates (like 1st, 2nd, 3rd, 4th). Let’s not judge Golang for that. The following is how I remedy this issue: layouts/partials/func/formatOrdinalDate.html go-html-template 1{{- $format := .format -}} 2{{- $date := .date -}} 3{{- $shortened := "th" -}} 4{{- if in (slice 1 21 31) $date.

Back to top