-
|
I found out that customProps ( and the front matter items can be accessed inside the Markdown page itself as follows: But is there a way to access front matter items other than I'm trying to implement a filter function in a category index page based on label(s) of the child pages. However, since |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Not sure to understand, please create a repro with an example of what you are trying to do.
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 |
Beta Was this translation helpful? Give feedback.
Not sure to understand, please create a repro with an example of what you are trying to do.
sidebar_custom_propsallow 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:
In the future a
createFrontMatterAPI would allow you to …