bjacquemet / personal-web

Hugo Template for Freelancer Portfolio and Blog
MIT License
137 stars 107 forks source link

add option for safe rendering #25

Closed pbklink closed 1 year ago

pbklink commented 2 years ago

Added rendererSafe option to config.toml. If this is set to true, then the theme will work without the renderer being set to unsafe and the [markup] section at the bottom of config.toml can be removed.

If rendererSafe is set to true, then titles can no longer contain markdown.

For backwards compatibility, if rendererSafe is missing, then it defaults to false.