Style tweaks to blog archive
This commit is contained in:
@@ -70,9 +70,10 @@ h4.blog_index-title Blasts from the past
|
||||
| {% endfor %}
|
||||
|
||||
| {% if more_posts_available %}
|
||||
.blog_index-item
|
||||
a.item-title.blog-archive(href="{{ project.blog_archive_url }}")
|
||||
| {{posts_meta.total - posts|length}} more blog posts live here
|
||||
h4.blog_index-title.blog-archive
|
||||
a(href="{{ project.blog_archive_url }}")
|
||||
| {{posts_meta.total - posts|length}} more blog posts over here
|
||||
i.pi-angle-right
|
||||
| {% endif %}
|
||||
|
||||
| {% else %}
|
||||
@@ -84,19 +85,31 @@ h4.blog_index-title Blasts from the past
|
||||
| {% endmacro %}
|
||||
|
||||
//- ******************************************************* -//
|
||||
|
||||
| {% macro render_archive_pagination(project) %}
|
||||
h4.blog_index-title.blog-archive
|
||||
a(class="{% if not project.blog_archive_prev %}disabled{% endif %}",
|
||||
href="{{ project.blog_archive_prev }}", rel="prev")
|
||||
i.pi-angle-left
|
||||
| Previous page
|
||||
|
||||
a(href="{{ url_for('main.project_blog', project_url=project.url) }}", rel="prev")
|
||||
| Blog Index
|
||||
|
||||
a(class="{% if not project.blog_archive_next %}disabled{% endif %}",
|
||||
href="{{ project.blog_archive_next }}", rel="next")
|
||||
| Next page
|
||||
i.pi-angle-right
|
||||
| {% endmacro %}
|
||||
|
||||
| {% macro render_archive(project, posts, posts_meta) %}
|
||||
| {% if project.blog_archive_prev %}
|
||||
.blog_index-item.list
|
||||
a(href="{{ project.blog_archive_prev }}", rel="prev") Previous page
|
||||
| {% endif %}
|
||||
|
||||
| {{ render_archive_pagination(project) }}
|
||||
|
||||
| {% for node in posts %}
|
||||
| {{ render_blog_list_item(node) }}
|
||||
| {% endfor %}
|
||||
|
||||
| {% if project.blog_archive_next %}
|
||||
.blog_index-item.list
|
||||
a(href="{{ project.blog_archive_next }}", rel="next") Next page
|
||||
| {% endif %}
|
||||
| {{ render_archive_pagination(project) }}
|
||||
|
||||
| {% endmacro %}
|
||||
|
Reference in New Issue
Block a user