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
51 lines
1.4 KiB
Twig
51 lines
1.4 KiB
Twig
{% extends "frame.twig" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block mainContent %}
|
|
<article>
|
|
<div class="index">
|
|
<h2>{{title}}</h2>
|
|
<p>{{ content | raw }}</p>
|
|
|
|
</div>
|
|
</article>
|
|
<section>
|
|
<div class="index-lists">
|
|
<div class="recent">
|
|
<span>RECENT</span><br />
|
|
{% 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 class="featured">
|
|
<span>FEATURED</span><br />
|
|
{% 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>
|
|
|
|
</div>
|
|
</section>
|
|
{% endblock %} |