avoskitchen / kirby-kitchen

Recipe manager for Kirby-based food blogs and personal recipe collections.
5 stars 1 forks source link

Inline CSS breaks in panel list info #15

Closed lukasleitsch closed 8 months ago

lukasleitsch commented 1 year ago
Bildschirmfoto 2023-09-07 um 12 28 45

The inline CSS in the panel list info breaks in Kirby 3.9.6.1. I guess that the string will be escaped.

A workaround could be to remove the inline css and output the cuisine field directly like the category. Example: category, cuisine

@fabianmichael What do you think?

lukasleitsch commented 1 year ago

Another workaround is to overwrite the info field in the recipes.yml

tabs:
  recipes:
    sections:
      drafts:
        info: "{{ page.categoryTitle }}"
      published:
        info: "{{ page.categoryTitle }}"
      unlisted:
        info: "{{ page.categoryTitle }}"
fabianmichael commented 1 year ago

Yeah, lets better remove this hack and just output everything directly. AFAIK, in recent versions of Kirby, there’s also a table mode for listing pages, so there’s no need for any workarounds any longer for displaying advanced page info.

fabianmichael commented 8 months ago

Done in https://github.com/avoskitchen/kirby-kitchen/commit/7bd060479a1348d3ebaccb253d1f2cc413550418