1
Fork 0
mkdocs-site/theme/main.html
Jake Howard ae44083c72
Add function to get page URL
This is much easier to work with
2023-09-14 22:02:40 +01:00

20 lines
372 B
HTML

{{ page.content }}
Nav: {{ nav }}
Parent: {{ page.parent }}
Section: {{ page.is_section }}
Is lits page: {{ page|is_list_page }}
Children: {{ page|children }}
{% set tag_1_page = get_page('tags/tag1.md') %}
Found page: {{ tag_1_page }}
URL: {{ get_page_url("tags/tag1.md") }}
Image resized: {{ "./assets/test.jpg"|resize_image(1500) }}
Globals: {{ globals.foo }}