Skip to content

Commit ee261a9

Browse files
committed
[MkDocs] Built-in meta plugin
1 parent 95d32b4 commit ee261a9

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

docs/.meta.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sample:
2+
name: John Doe
3+
age: 30
4+
city: New York
5+
is_student: false
6+
grades:
7+
math: 95
8+
science: 88
9+
english: 92
10+
hobbies:
11+
- reading
12+
- hiking
13+
- coding

docs/mkdocs.md

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ plugins:
8282
8383
{{{ context(sample) | pretty }}}
8484
85+
### Meta plugin
86+
87+
[🔗 Metadata for groups of pages](https://squidfunk.github.io/mkdocs-material/plugins/meta/)
88+
89+
{{{ context(page.meta.sample) | pretty }}}
90+
8591
### Open link in new tab
8692
8793
```md

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ markdown_extensions:
6666
permalink: true
6767

6868
plugins:
69+
- meta
6970
- search
7071
- git-revision-date-localized:
7172
enabled: !ENV [CI, GITHUB_ACTIONS, False]

0 commit comments

Comments
 (0)