matcornic / hugo-theme-learn

Porting Grav Learn theme to Hugo
https://learn.netlify.com/en/
MIT License
1.6k stars 1.28k forks source link

Fix: customMermaidURL can be used in site config and frontmatter #518

Closed stou closed 2 years ago

stou commented 3 years ago

Change param name to lower case, since all site-level configuration keys are stored as lower case. According to official hugo documentation: https://gohugo.io/functions/isset/

This allows loading custom mermaid.js using the config option, as specified in https://learn.netlify.app/en/basics/configuration/

McShelby commented 3 years ago

Shameless advertising: This issue (and a lot more) is already fixed in the drop in replacement fork relearn. See changelog