koc-he/share

[Bug] "Enabled" buttons functionality not working

Closed this issue · 0 comments

koc-he commented

Hugo version

v0.111.3

Is this a regression?

No

Description

I'm unable to enable select buttons.

This happens because the enabled property is checked for in the page parameters instead of the page scratch pad.

Here:

{{ if eq ( .Param "enabled" ) nil }}

and here:

{{ if or $all ( in .enabled $smb ) }}

Expected Behaviour

When a button tag is passed to the enabled slice, only those buttons with tags in it should be enabled.

Instead, all the buttons are enabled.

Reproduction

No response

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Anything else?

No response