ro
a5583debbd
to complete page rendering, the default theme needed to be converted to use blade templating. rather than update the theme kit as a seperate progress, it will be integrated into this codebase so themes can be developed and tested in app. the basics for the theme kit are in place, so now conversion of the defualt theme can be completed. once the that is done, it can then be used to complete the rendering engine to export HTML files
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 %} |