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 1{{- $format := .format -}} 2{{- $date := .date -}} 3{{- $shortened := "th" -}} 4{{- if in (slice 1 21 31) $date.
- 100DaysToOffload(24)
- acer(1)
- alexa(1)
- automation(1)
- bash(1)
- ben-lukas-boysen(1)
- component(13)
- configuration(1)
- CSP(1)
- danny kreutzfeldt(1)
- dateformat(1)
- @davidsneighbour(3)
- debugging(1)
- deep core(1)
- design(2)
- developers(1)
- development(1)
- dreamhost(1)
- earth(1)
- EFI(1)
- electron(1)
- encryption(1)
- feature(1)
- frontmatter(1)
- game-off(1)
- giscus(1)
- git(1)
- github(2)
- gitignore(1)
- gitlab(1)
- Hugo(21)
- golang(2)
- google(1)
- how i work(1)
- how to(1)
- howto(3)
- javascript(1)
- laboratory(7)
- learning(1)
- link(2)
- logging(2)
- logos(1)
- me now(3)
- media(1)
- mike myers(1)
- movies(1)
- nagging(1)
- newsletter(1)
- nine inch nails(1)
- notes(9)
- ordinals(1)
- piano(1)
- pipes(1)
- planning(1)
- plugin(1)
- programming-music(8)
- project-management(1)
- projects(1)
- queensryche(1)
- quicklink(1)
- quicktip(1)
- rammstein(1)
- reference(1)
- render-hook(1)
- security(1)
- self-improvement(7)
- selfimprovement(1)
- seo(9)
- shell(1)
- shortcode(2)
- SRI(1)
- static websites(1)
- syntaxhighlighting(1)
- todo(1)
- trailers(1)
- trent reznor(1)
- ubuntu(2)
- UEFI(1)
- updraftplus(1)
- useful(1)
- video(1)
- vscode(3)
- web development(1)
- webdesign(1)
- wordpress(1)