This commit is contained in:
Loïc Guibert
2022-09-30 20:02:02 +01:00
commit 66dafc36c3
2561 changed files with 454489 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{%- set request = grav.request -%}
{%- set object_context = object ?? {} -%}
{%- set object_layout = object_context.layout ?? ('list-' ~ layout) -%}
{% if blacklist %}
{% set collection = collection.unselect(blacklist) %}
{% endif %}
<div id="flex-objects">
{% if title %}
<h2>{{ title|e }}</h2>
{% endif %}
{% if content %}
<div>{{ content|markdown }}</div>
{% endif %}
<ul class="list">
{% for object in collection.filterBy({ enabled: true }) %}
{% set link = request.uri ~ '/id:' ~ object.key %}
<li>
{% render object layout: object_layout with object_context|merge({link: link}) %}
</li>
{% endfor %}
</ul>
</div>

View File

@@ -0,0 +1,14 @@
<h4>
{% if object.icon %}<i class="fa fa-{{ object.icon|e }}"></i>{% endif %}
{{ object.readableName|e }}
</h4>
{% if object.description %}
<div>
{{ object.description|e }}
</div>
{% endif %}
{% if link %}
<div>
<a href="{{ link }}">See Details</a>
</div>
{% endif %}

View File

@@ -0,0 +1,16 @@
<div class="entry-details">
<h4>
{% if object.icon %}<i class="fa fa-{{ object.icon|e }}"></i>{% endif %}
{{ object.readableName|e }}
</h4>
{% if object.description %}
<div>
{{ object.description|e }}
</div>
{% endif %}
{% if link %}
<div>
<a href="{{ link }}">See Details</a>
</div>
{% endif %}
</div>