feat(templates): 🎨 adjust templates to fit the new rendering data format
This commit is contained in:
parent
9a5b9e609e
commit
9de4838081
7 changed files with 47 additions and 110 deletions
27
www/templates/render_templates/gallery.html
Normal file
27
www/templates/render_templates/gallery.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
{% extends "pathed_content.html" %}
|
||||
|
||||
{%block content_article%}
|
||||
{{ include('fragments/directory/inline.html') }}
|
||||
|
||||
{{ content_html|raw }}
|
||||
|
||||
{% if search_results|length > 0 %}
|
||||
<ul class="gallery">
|
||||
{% for post in search_results %}
|
||||
<li class="entry">
|
||||
<a href={{post.path}}>
|
||||
<figure>
|
||||
<img src="{{post.media_preview_url}}">
|
||||
<figcaption>
|
||||
{{ post.title }}
|
||||
</figcaption>
|
||||
</figure>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{%else%}
|
||||
<h4>How sad. There are no images yet... What a real shame :c </h4>
|
||||
{% endif %}
|
||||
{%endblock%}
|
Loading…
Add table
Add a link
Reference in a new issue