diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 227dbc7c..c8945914 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -60,7 +60,9 @@
{% block content_wrapper %}
+ {% block content_top %}{% endblock %} {% block content %}{% endblock %} + {% block content_bottom %}{% endblock %}
{% endblock %} diff --git a/source/_layouts/page.html.twig b/source/_layouts/page.html.twig new file mode 100644 index 00000000..a60b03d2 --- /dev/null +++ b/source/_layouts/page.html.twig @@ -0,0 +1,5 @@ +{% extends 'default' %} + +{% block content_top %} +

{{ page.title }}

+{% endblock %} diff --git a/source/_layouts/project.html.twig b/source/_layouts/project.html.twig new file mode 100644 index 00000000..6e16593c --- /dev/null +++ b/source/_layouts/project.html.twig @@ -0,0 +1,39 @@ +{% extends 'page' %} + +{% block content_wrapper %} +
+ {{ page.blocks.content_top|raw }} + {{ page.blocks.content|raw }} + {{ page.blocks.content_bottom|raw }} +
+{% endblock %} + +{% block content_top %} + {{ parent() }} + + {% if page.company %} +
+ {% spaceless %}{% set company = site.companies[page.company] %} + Developed on behalf of + {% if company.website %} + {{ company.title }} + {% else %} + {{ company.title }} + {% endif %}{% endspaceless %}. +
+ {% endif %} +{% endblock %} + +{% block content_bottom %} + {% if page.website %} +
+ View the website +
+ {% endif %} + + {% if page.image %} +
+ The {{ page.title }} website. +
+ {% endif %} +{% endblock %}