~tommoa/theme unlisted

163d527f2be1371289744a5d0697e5c47c3a4f0a — Tom Almeida 6 months ago 16ac345 master
templates(index): Add section names to index template

This allows the index to show the sections underneath it, providing a
good landing page.
1 files changed, 12 insertions(+), 0 deletions(-)

M templates/index.html
M templates/index.html => templates/index.html +12 -0
@@ 20,6 20,18 @@
  {% endblock header %}
</header>

<div class="section_div">
    {%- if section.subsections | length > 0 -%}
        <h2 style="margin-bottom: 30px;">Sections</h2>
        <div class="social_list section_list">
        {% for section_name in section.subsections %}
            {%- set section = get_section(path=section_name) -%}
            <div class="button large font_faint"><a href="{{section.permalink}}"> {{ section.title }}  {%- if section.extra.symbol %} <i class="{{section.extra.symbol}}"></i> {%- elif section.extra.image %} <img href="{{section.permalink}}" src="{{section.extra.image}}" class="symbol"></img> {%- endif -%}</a></div>
        {% endfor %}
        </div>
    {%- endif -%}
</div>

<section class="post_list">
    {% for page in paginator.pages %}
      <article id="{{page.title}}" class="post_list_item">