diff options
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..146df3b --- /dev/null +++ b/templates/index.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} + +{% if section.extra.list_pages %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = section.pages %} +{% endif %} +<ul> +{% for page in pages %} + <li> + <a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a> + <br /> + {{ page.description }} + </li> +{% endfor %} +</ul> +{% if paginator %} +<p>{% if paginator.previous %}<a href="{{ paginator.first }}"><< First</a> <a href="{{ paginator.previous }}">< Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next ></a> <a href="{{ paginator.last }}">Last >></a>{% endif %}</p> +{% endif %} +{% endif %} +{% endblock content %}
\ No newline at end of file |
