introduce search interface
This commit is contained in:
33
templates/gallery_index.html
Normal file
33
templates/gallery_index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{# -*-jinja2-*- #}
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
|
||||
{{ post.html|safe }}
|
||||
|
||||
|
||||
|
||||
{% if post.links.subindexpages | length > 0 %}
|
||||
|
||||
<div class= "grid-container" >
|
||||
<div class="grid-x">
|
||||
|
||||
{% for d in post.links.subindexpages %}
|
||||
<div class="cell small-12 medium-4 large-3">
|
||||
<a href="{{d.url}}" class="gallery-block media">
|
||||
<img src="{{d.thumb_url }}" alt="{{d.title}}" class="img-thumbnail pull-left" />
|
||||
<div class="media-body">
|
||||
<small class="pull-right">{{d.date}} </small>
|
||||
<h2> {{d.title}} </h2>
|
||||
<div >{{d.desc}} </div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{# loop.cycle('','','</div><div class="row">')| safe #}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user