I’m working on my first hugo-driven site. I really like working with it.
My first big obstacle is figuring out how to break up a list page with over 200 titles. The nature of this particular beast is such that I’d like it to remain one page, but with anchors throughout the list based on the first letter of each title. Here’s the pseudo logic:
$currentletter = '' while list $firstletter = <<first letter of title>> if $currentletter != $firstletter <<add back-to-top link>> <<build letter-specific anchor>> $currentletter = $firstletter end <<do template-y things for this page>> end
I can’t seem to get the hugo-tempate versions of $currentletter and $firstletter to keep in scope during the list iteration.