diff options
| author | Jieiku | 2022-05-30 22:33:42 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-30 22:33:42 -0700 |
| commit | 9c1f02f9099b0da48c0bec7f23fa8c0566a331f3 (patch) | |
| tree | 477e96531357223345fef18fb96383e40ddea7c5 /templates/index.html | |
| parent | a5a2e0ae482a5168781b4abf952885531bdc93cc (diff) | |
| download | abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.tar.gz abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.tar.bz2 abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.zip | |
Whitespace Cleanup, Fix Recent
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/templates/index.html b/templates/index.html index 1bd4976..ad4af41 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,20 +1,27 @@ {% import "macros/page.html" as page_macros %} {% import "macros/macros.html" as macros %} -{% extends "base.html" %}{% block content %} - <div>{% for page in paginator.pages %} - <article> -{{ macros::title(page=page) }} <p>{{ page.summary | markdown(inline=true) | safe }} <a href="{{ page.permalink | safe }}">...more</a></p> - </article>{% endfor %} +{% extends "base.html" %} +{% block content %} + <div> + {% for page in paginator.pages %} + <article> + {{ macros::title(page=page) }} + <p>{{ page.summary | markdown(inline=true) | safe }} <a href="{{ page.permalink | safe }}">...more</a></p> + </article> + {% endfor %} <nav> {% if paginator.previous %}<a href="{{ paginator.previous | safe }}">< Previous</a> {% endif %}{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next ></a>{% endif %} </nav> - </div>{% set section_item = get_section(path="_index.md") %} + </div> + {% set section_item = get_section(path="_index.md") %} {% if recent %} - <div class="toc"> - <div class="toc-sticky"> - <h3>Recent Posts</h3>{% for page in section_item.pages | slice(end=config.extra.recent_items) %} -{{ page_macros::page_listing(page=page) }}{% endfor %} + <div class="toc"> + <div class="toc-sticky"> + <h3>Recent Posts</h3> + {% for page in section_item.pages | slice(end=config.extra.recent_items) %} + {{ page_macros::page_listing(page=page) }} + {% endfor %} + </div> </div> - </div> {% endif %} - {% endblock content %} +{% endblock content %} |
