okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 133 forks source link

Fix comparison for `summary` option in `list` fragment #874

Open Natureshadow opened 2 years ago

Natureshadow commented 2 years ago

For me, the comparison with boolean true did not work for the following frontmatter:

summary = true

The string comparison works.

stp-ip commented 2 years ago

This is used throughout the code so shouldn't be an issue. Will keep this open, but won't merge as this fix is more a temporary and local thing. We can't change this boolean to a string especially as we use booleans throughout the code. Maybe Hugo changed something to make this break. :thinking: