a70bb7b2b0
Cleaned up the themes folder since it did not need the additional folder depth to manage bundled scripts anymore. Updated the theme engine accordingly.
57 lines
1.8 KiB
Twig
57 lines
1.8 KiB
Twig
{% extends "frame.twig" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block mainContent %}
|
|
<article>
|
|
<h1>{{ title }}</h1>
|
|
<p>{{ content | raw }}</p>
|
|
</article>
|
|
<section role="page-meta">
|
|
<div>
|
|
<h2>RECENT</h2>
|
|
{% for item in recent %}
|
|
{% if dynamicRender is defined %}
|
|
{% if dynamicRender == 'true' %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% else %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
</div>
|
|
<div>
|
|
<h2>FEATURED</h2>
|
|
{% for item in featured %}
|
|
{% if dynamicRender is defined %}
|
|
{% if dynamicRender == 'true' %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% else %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}">
|
|
{{ item.title }}
|
|
</a><br/>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
{% endblock %} |