Skip to content

Ability to add title to features section #2788

@itsWindows11

Description

@itsWindows11

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

It would be good to be able to add title text to the features section.

Describe the solution you'd like

Provide a property for setting the header text for features section.

Example:

---
layout: home
features-title: Features
features:
  - icon: 🛠️
    title: Simple and minimal, always
    details: Lorem ipsum...
  - icon:
      src: /cool-feature-icon.svg
    title: Another cool feature
    details: Lorem ipsum...
  - icon:
      dark: /dark-feature-icon.svg
      light: /light-feature-icon.svg
    title: Another cool feature
    details: Lorem ipsum...
---

Describe alternatives you've considered

Using ::before in CSS for the VPHomeFeatures element and setting content works but feels hacky and isn't accessibility friendly.

This is how it looks like with the workaround, basically what I'd want:

image

div.VPHomeFeatures div.container::before {
  content: 'Reviews';
  font-size: 24px;
  font-weight: 600;
}

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-workaroundHas workaround, low prioritystalethemeRelated to the theme

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions