Skip to content
Discussion options

You must be logged in to vote

Not sure to understand, please create a repro with an example of what you are trying to do.

However, since sidebar_custom_props only allows pairs of a key and a value, I find it difficult to use the field for multi-label filtering

sidebar_custom_props allow key value pairs but the values can be more complex types, you can pass a Yaml array as value for example.

Tags are not added to the sidebar item props, so if you want to use tags for your filtering, you'd have to "duplicate" them:

---
id: doc-with-tags
title: A doc with tags
tags:
  - Demo
  - Getting started
sidebar_custom_props:  
  tags:
    - Demo
    - Getting started
---

In the future a createFrontMatter API would allow you to …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@allenscha
Comment options

@slorber
Comment options

slorber Apr 13, 2023
Collaborator

Answer selected by allenscha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants