You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
title: A subfile!
|
|
|
|
---
|
|
|
|
I am a little piece of content
|
|
|
|
|
|
|
|
# With a title!
|
|
|
|
|
|
|
|
And things...
|
|
|
|
|
|
|
|
:::{if=cat}
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
``` {.python .run}
|
|
|
|
# I set my own flags!
|
|
|
|
ctx.set_flag("cat", True)
|
|
|
|
```
|
|
|
|
|
|
|
|
``` {.python .run}
|
|
|
|
println(f"The subdocument's title is \n\n# {ctx.get_metadata('title')}")
|
|
|
|
println()
|
|
|
|
println(f"The subdocument's subtitle is \n\n## {ctx.get_metadata('subtitle')}")
|
|
|
|
```
|
|
|
|
|
|
|
|
``` {.python .run}
|
|
|
|
ctx.set_metadata("language", "cs")
|
|
|
|
```
|
|
|
|
|
|
|
|
Tak toto je "v prádelně" pánové!
|
|
|
|
|
|
|
|
``` {.python .run}
|
|
|
|
ctx.set_metadata("language", "en")
|
|
|
|
```
|
|
|
|
|
|
|
|
This is "in a laundry room" gentlemen!
|
|
|
|
|
|
|
|
|
|
|
|
``` {.python .run}
|
|
|
|
ctx.unset_metadata("language")
|
|
|
|
```
|
|
|
|
|
|
|
|
I am a duck.
|
|
|
|
|
|
|
|
:::{if=cat}
|
|
|
|
This should be only shown to included cats.
|
|
|
|
:::
|
|
|
|
|