Quickies » tv

As we know, hugo is pretty annoying sometimes. I wanted to add a new shortcode on the following premise:

Front matter:

1
2
3
4
5
6
random_name: [
	"/uploads/some-non-existing-file.zip",
	"Download title",
	"SHA1: SOME_SHA1_VALUE_TO_DOUBLE_CHECK",
	"69420 bytes"
]

Code in post

{{< download random_name >}}

The Problem

The problem was that I didn’t know how to tell that I want the (.Get 0) part of the shortcode to be pulled out of the $.Page.Params variable.

The Solution

Instead of trying all possible variations of $.Page.Params.$(Get 0) with various ticks and quotes, I found this better and more elegant solution: {{ $download := index $.Page.Params (.Get 0) }}/

1
2
3
4
5
6
7
{{ $download := index $.Page.Params (.Get 0) }}
{{ with $download }}
	<a class="download-item" target="_blank" href="{{ index . 0 }}">
		<h4>{{ index . 1 }}</h4>
		<h6>{{ index . 2 }} ({{ index . 3 }})</h6>
	</a>
{{ end }}

Ez pz.

testing

I really like this movie, feels like a competitor to “Chappie”.

wow is dead in 2023

yea, wow is dead

youtube • video ID: k0PX-0huuEQ

click image to load player

it’s late night and your heart is ice cold.

youtube • video ID: rDBbaGCCIhk

click image to load player

youtube • video ID: wFOEubKzyQA

click image to load player

youtube • video ID: eRGflWOpwts

click image to load player

foxes

i have a stick!

anna lesko - nu mai am timp (unu's room remix)

I just remembered something before that. I used to play Super Mario Bros and Dr. Mario on a NES clone (Eastern Europeans might remember the Terminator console – pic attached) and that I’d always argue with my dad over who gets to play. I remember I asked mom at some point to play and she said “nah, I just like watching”, so I think I invented twitch streaming in 1993.

village

logo font

Because I’ve had some people ask me which font I was using for my logo, it’s FoughtKnight which I found on dafont.

close tools panel
toggle tools panel