forked from projects/fipamo
ro
8d3af5b6e1
Added the folder containg Fipamo markdown files to set up a basic route for the start of the dashboard and quick test to make sure the file paths can be read also added CSS files that will style the new template system, which is currenlty in twig but will be convereted to blade
45 lines
1.1 KiB
Twig
45 lines
1.1 KiB
Twig
{% extends "frame.twig" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block mainContent %}
|
|
<section>
|
|
<div class="page-title">
|
|
<span>{{title}}</span>
|
|
</div>
|
|
</section>
|
|
<article>
|
|
<div class="page">
|
|
{% for item in archives %}
|
|
<div class="archive-item">
|
|
<span class="year">
|
|
{{item.year}}
|
|
</span>
|
|
{% for data in item.year_data %}
|
|
<div class="archive-month">
|
|
<span class="month">
|
|
{{data.full_month}}
|
|
</span>
|
|
{% for page in data.pages %}
|
|
{% if dynamicRender is defined %}
|
|
{% if dynamicRender == 'true' %}
|
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug }}">{{page.title}}</a><br />
|
|
{% else %}
|
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{page.title}}</a><br />
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{page.title}}</a><br />
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</article>
|
|
{% endblock %} |