Skip to content

Commit bd6748d

Browse files
committed
docs
1 parent fac4219 commit bd6748d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ More information about plugins in the [MkDocs documentation][mkdocs-plugins]
3737
### Use Extra Variables in your markdown files
3838

3939
The variables you define in the mkdown.yml `extra:` slot will become available in your templates
40+
41+
```yaml
42+
extra:
43+
customer:
44+
name: Your name here
45+
web: www.example.com
46+
salt: salt.example.com
47+
```
48+
49+
and then in your `*.md` files
50+
51+
```jinja
52+
{{ customer.name }}
53+
<a href="{{ customer.web }}">{{ customer.web }}</a>
54+
```
55+
4056
<br/>
4157

4258
## Contributing

0 commit comments

Comments
 (0)