front matter
front matterยค
midgy
permits yaml
and toml
front matter.
triple + indicates toml front matter
+++
+++
locals().update(__import__("midgy").front_matter.load("""+++
+++"""))
triple - indicates yaml front matter
---
---
locals().update(__import__("midgy").front_matter.load("""---
---"""))
only shebang tokens can precede front matter
#!/usr/bin/env midgy
---
---
#!/usr/bin/env midgy
locals().update(__import__("midgy").front_matter.load("""---
---"""))
non-shebang tokens cancel front matter
a short paragraph
---
---
"""a short paragraph
---
---""";
exclude front matter from parsing
+++
[py]
include_front_matter = false
+++
# +++
# [py]
# include_front_matter = false
# +++