Skip to content

andyoakley/mkdocs-jinja2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This mkdocs plugin allows the use of Jinja2 templates inside Markdown content.

It can be useful, for example, to enumerate pages or use the configuration or site navigation data structures from within content.

Templates should render to HTML.

Example

{% for year in ['2018', '2017'] %}
  <h3>{{ year }}</h3>
  {% for page in pages|sort(attribute='url', reverse=True) %}
    {{ page.title }}
    <br />
  {% endfor %}
{% endfor %}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages