57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
{% extends "base.html" %} {% block title %}{{blog_title.title}}{% endblock %} {%
|
|
block content %}
|
|
<!--timeline as a component which will be filled with callable function
|
|
### {{ timeline("career") }} this is a part of html string
|
|
### nested render-->
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
{% for post in posts %}
|
|
<h2 class="post-title">
|
|
<a href="{{ url_for('post_detail', post_id=post.id) }}"
|
|
>{{ post.title }}</a
|
|
>
|
|
</h2>
|
|
<!--p class="lead">
|
|
by **{{ post.author }}**
|
|
</p-->
|
|
<p>
|
|
<span class="glyphicon glyphicon-time"></span> Posted on {{ post.date }}
|
|
</p>
|
|
<!-- stytle customed, expanded and unextanded posts have different margin-->
|
|
{% if post.displayall %}
|
|
<div>{{ post.content | safe }}</div>
|
|
<hr class="post-divider post-divider-expanded" />
|
|
|
|
{% else %}
|
|
<div>{{ post.content | striptags | truncate(200) }}</div>
|
|
<!--div>{{ post.content[:200] | safe }}...</div-->
|
|
<a
|
|
class="btn btn-default btn-custom"
|
|
href="{{ url_for('post_detail', post_id=post.id) }}"
|
|
>Read More</a
|
|
>
|
|
<hr class="post-divider post-divider-preview" />
|
|
|
|
{% endif %} {% endfor %}
|
|
<ul class="pager">
|
|
{% if prev_url %}
|
|
<li class="previous"><a href="{{ prev_url }}">← Older</a></li>
|
|
{% else %}
|
|
<li class="previous disabled"><a href="#">← Older</a></li>
|
|
{% endif %}
|
|
|
|
<span class="text-muted"
|
|
>Page {{ current_page }} of {{ total_pages }}</span
|
|
>
|
|
|
|
{% if next_url %}
|
|
<li class="next"><a href="{{ next_url }}">Newer →</a></li>
|
|
{% else %}
|
|
<li class="next disabled"><a href="#">Newer →</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|