decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Only date('format') filter in Summary String Transformations work. All others are broken.

Open mimecine opened this issue 8 months ago • 4 comments

Describe the bug

The only filter that seems to work in the summary is the date one. All others are inert.

To Reproduce summary = "{{ title | upper }} / {{ title | lower }} / {{ title | truncate(3) }} / {{ nonexistant | default('Hello') }} / {{mytruth | ternary('Yep','Nope') }} / {{today | date('yyyy') }}" yields Title / Title / Title / / / 2024 Booleans don't display at all whether true or false (might be expected tho)

Expected behavior TITLE / title / Tit / Hello / Yep / 2024

Applicable Versions:

  • Decap CMS version: 4.3.0
  • Git provider: Github
  • OS: MacOS latest
  • Browser version: Chrome latest

Additional context Booleans don't display at all whether true or false (might be expected tho)

mimecine avatar May 30 '24 14:05 mimecine