okkur / syna

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

Fix broken if and statement #774

Closed Houndie closed 4 years ago

Houndie commented 4 years ago

Updates to hugo 0.71.1 causes a previously allowed-but-wrong construct to now be disallowed. This fixes the template to now compile on 0.71.1

Fixes okkur/syna#773

What this PR does / why we need it: Fixes an template that is now illegal in hugo 0.71.1

Special notes for your reviewer: Also discussed in gohugoio/hugo#7325 Release note:

Fixes template error in hugo 0.71.1
stp-ip commented 4 years ago

Thanks for the fix. Looking forward to the next PR ;)

stp-ip commented 4 years ago

Referencing the upstream Hugo issue here as well as the fix was merged before the guidance on PR linking: https://github.com/gohugoio/hugoThemes/issues/858