{% extends "base.html" %}

<!-- Additional styles and scripts -->
{% block head %} {% if css %}
<link rel="stylesheet" href="{{url_for('static', filename='css/' +css)}}" />
{% endif %} {% if script %}
<script src="{{url_for('static', filename='js/' + script)}}" defer></script>
{% endif %} {% endblock %}

<!-- Title -->
{% block title %} {{title}} {% endblock %} {% block nav %}
<a href="{{url_for('home_page')}}">Back</a>
{% endblock %}

<!-- Contents in the body -->
{% block content%} {% if cover %}
<img class="cover" alt="{{cover_alt}}" src="{{url_for('static', filename='img/' + cover)}}" />
{% endif %} {{ content|safe }} {% endblock %}
