summaryrefslogblamecommitdiffstatshomepage
path: root/templates/page.html
blob: 645c7f2dc2f6e160e21bd70772e8a0f6409c0587 (plain) (tree)
1
2
3
4
5
6
7
8
9

                          
                    
                                                    


                                                                      
                                                   
                                                     

             
               
{% extends "base.html" -%}

{%- block content %}
{{ macros::render_post(post=page, class="single") }}
{%- if "related" in page.extra and page.extra.related | length > 0 -%}
<h3 class="related">Related posts</h2>
{%- for ref in page.extra.related %}
{%- set page = get_page(path=ref ~ "/index.md") -%}
{{ macros::render_post(post=page, class="related") }}
{%- endfor %}
{%- endif %}
{%- endblock %}