monkeyWzr / hugo-theme-cactus

Cactus theme for hugo
MIT License
537 stars 338 forks source link

Update "projectsurl" case in isset #36

Closed apettenati closed 3 years ago

apettenati commented 3 years ago

The custom projectUrl if statement is not working due to a case issue. According to Hugo's documentation, using variables in isset statements should be all lowercase. This corrected the issue when I updated it in my source code.

All site-level configuration keys are stored as lower case. Therefore, a myParam key-value set in your site configuration file needs to be accessed with {{if isset .Site.Params "myparam"}} and not with {{if isset .Site.Params "myParam"}}.