Quickies
In early May, the news site rating company NewsGuard found 49 fake news websites that were using AI to generate content. By the end of June, the tally had hit 277. […] The sites appear to have been created to make money through Google’s online advertising network.
surprised pikachu face
by Andrei on
As we know, hugo is pretty annoying sometimes. I wanted to add a new shortcode on the following premise:
Front matter:
|
|
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 with various ticks and quotes, I found this better and more elegant solution: $.Page.Params.$(Get 0)
{{ $download := index $.Page.Params (.Get 0) }}/
|
|
Ez pz.
by Andrei on
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.