Skip to content

How to access nested metadata having a key with dots #10936

@cscheid

Description

@cscheid

Let's support something like {{< meta nested.a\.b\.c.key >}}

(Then we ofc also need to figure out what to do with keys that have backslashes in them.0

Discussed in #10914

Originally posted by vlcinsky September 28, 2024

Description

My sample index.qmd:

---
title: My Page
nested:
  a.b.c:
    key: Show me
---

I would like to show the "Show me" using a shortcode.

E.g. {{< meta nested["a.b.c"]key >}}

but it fails.

My question is: is there a syntax for accessing keys, which include dot(s) in their name?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestshortcodesissues related to shortcodes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions