-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_list.html
24 lines (24 loc) · 907 Bytes
/
_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<ul class="item-list" itemprop="blogPosts">
{%- for page in pages %}
<li{% if not page.published %} class="unpublished"{% endif %}>
<h3>
<a itemprop="url" href="{{ url_for("page", path=page.path) }}"><span itemprop="name">{{ page.title }}</span></a>
| <time datetime="{{ page.date }}">{{ page.date }}</time>
{% for tag in page.tags %}
| <a class='tag' rel='tag'
href="{{ url_for('search_tag', tag=tag) }}">{{ tag }}</a>
{% endfor %}
</h3>
<p><q itemprop="description"><em>
{%- if page.meta.summary and page.meta.summary|striptags|trim %}
{{- page.summary|trim }}
{%- elif page.html|striptags|trim -%}
{{- page.html|striptags|trim|truncate(135) }}
{%- endif -%}
</em></q></p>
<hr>
</li>
{%- else %}
<li>No page (yet?)</li>
{%- endfor %}
</ul>