panr / hugo-theme-terminal

A simple, retro theme for Hugo
MIT License
2.03k stars 743 forks source link

Fix reference to "framed" parameter #435

Closed larsks closed 1 year ago

larsks commented 1 year ago

Previously, layouts/_default/index.html was referencing .Params.framed, which looks for the framed parameter in the local document metadata, rather than in the site configuration.

This commit replaces it with $.Site.Params.framed, allowing you to frame the index content by setting in config.toml:

[params]
framed = true