jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
308 stars 227 forks source link

Fix customCSS and customJS parameters #49

Closed cberner closed 7 years ago

cberner commented 7 years ago

All site-level configuration keys are stored as lower case in Hugo: https://gohugo.io/functions/isset/

cberner commented 7 years ago

Most other usages are fine. Hugo's handling is a bit confusing, as it's mostly case insensitive, but in some places is case sensitive (isset): From the docs I linked:

All site-level configuration keys are stored as lower case... Note that you can still access the same config key with .Site.Params.myParam or .Site.Params.myparam, for example
bleathem commented 7 years ago

I came here to create this PR, noticed this one already created. I can confirm this change is required and enables custom CSS and JS files to be included as intended.

pacollins commented 7 years ago

Request has been pulled, thanks for fixing this! @cberner