Skip to content

Allow list of details in VPFeature #5101

@mariusheine

Description

@mariusheine

Is your feature request related to a problem? Please describe.

I want to display a list of detail items for a feature inside the home layout of the default theme.

Describe the solution you'd like

Just make the details of a feature string | string[]. Example:

features:

  - title: A
    details:
      - detail 1
      - detail 2
      - detail 3

When a list of detail items is provided these items should be rendered as an unordered list

<template v-if="details">
  <ul v-if="Arrays.isArray(details)">
    <li v-for="(detail, index) of details" :key="index">{{detail}}</li>
  </ul>
  <p v-else class="details" v-html="details"></p>
</template

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    themeRelated to the theme

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions