- Newer
- Older
Getting the day started with "+/-" by Buke and Gase.
Sep 6, 2017 @ 10:00am
The War on Drugs has a new album out, and I'm loving it. They are going to be in Chicago on my birthday... mmm, maybe I should grab some tickets. Listen on Spotfiy.
Aug 31, 2017 @ 9:45am
If you're just learning Hugo like me, you may want to start with Go's template documentation. The conditional sytax tripped me up for a minute. If you're accustomed to writing conditionals like this:
if ($x == $y)
if ($x && $y)
if ($x == $y || $x == $z)
This is how it would look in a Go template:
{{ if eq $x $y }}
{{ if and $x $y }}
{{ if or (eq $x $y) (eq $x $z) }}
In a Go template, eq
is a function that you pass arguments to, not a comparison operator like you would use in JavaScript.
Aug 30, 2017 @ 12:30pm
Welp, this site has just been switched over to Hugo! There's still some template cleanup I want to do, but overall it was fairly simple to migrate from Jekyll.
Aug 28, 2017 @ 10:00pm
I gave Hugo a test run today, and I'm loving it so far. It seems very powerful, and so easy to setup. I may be switching from Jekyll soon.