Hi all,
I have been migrating from Jekyll to Hugo (and I’m doing pretty good so far!). But I have a small problem. I have been using this code on my template but I can’t find a way to translate it in Go.
I know the conditional statements have a different syntax with Go and I’ve been reading about that, but I can’t find the solution.
Thanks a lot for your help
Steph
<li {% if page.url == "/index.html" %}class="active"{% endif %}>
<a href="index.html">HOME</a>
</li>
