1
ewpratten.com/templates/section.html

31 lines
897 B
HTML

{% extends "base.html" %}
{% block title %}
{{section.title}}
{% endblock title %}
{% block head %}
{{ super() }}
<meta property="og:title" content="{{section.title}} - Evan Pratten" />
{% if section.description %}
<meta property="og:description" content="{{section.description}}" />
<meta property="description" content="{{section.description}}" />
{% else %}
<meta property="og:description" content="{{config.description}}" />
<meta property="description" content="{{config.description}}" />
{% endif %}
{% endblock head %}
{% block content %}
{{section.content | safe}}
{% if section.extra.inject_blog_posts %}
<ul>
{% for page in section.pages %}
{% if not page.extra.hidden %}
<li class="blog-post-li"><a href="{{page.path}}">{{page.title}}</a> <span style="color:gray;">({{page.date}})</span>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endblock content %}