{% extends 'base.html.twig' %}

{% block title %}{{page.title}} | Alex Daniels{% endblock %}

{% block metatitle %}{{page.title}} | Alex Daniels {% endblock %}
{% block ogtitle %}{{page.title}} | Alex Daniels {% endblock %}
{% block twittertitle %}{{page.title}} | Alex Daniels{% endblock %}
{% block metadescription %}{{page.description|striptags }} {% endblock %}
{% block ogdescription %}{{page.description|striptags }} {% endblock %}
{% block twitterdescription %}{{page.description|striptags }} {% endblock %}

{% block ogurl %}https://alexdaniels.me/{{page.url}}{% endblock %}
{% block twitterurl %}https://alexdaniels.me/{{page.url}}{% endblock %}

{% block body %}
    <section class="page">
        <h2>{{page.title}}</h2>
        {% if app.user %}
            <a href="/brain/page/edit/{{page.id}}">Edit</a><br>
        {% endif %}
    
        <div class="text">
            {{ page.text|raw}}
        </div>
    </section>
{% endblock %}
