Sha256: ebb60d3ff202523b9138107cb00fbd32d7e22e7ac94100bebba76a513f3e0ecc

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

{%- assign sidebar = site.data.sidebars[include.sidebar]['subitems'] -%}
{%- for sections in sidebar %}
{%- assign section = sections.title | downcase | replace: " ", "_" %}
{%- assign section_pages = site.pages | where:"type", section | where_exp: "item", "item.search_exclude != true" | where_exp: "item", "item.page_id != nil"   %}
{%- unless section_pages.size == 0 %}
<h2>{{sections.title}}</h2>
<div class="table-responsive">
    <table class="table ">
        <thead>
            <tr>
                <th>title</th>
                <th>page_id</th>
                <th>description</th>
                <th>url</th>
            </tr>
        </thead>
        <tbody>
            {%- for section_page in section_pages %}
            <tr>
                <td><a href="{{ section_page.url | relative_url }}">{{section_page.title}}</a></td>
                <td>{{section_page.page_id}}</td>
                <td>{{section_page.description | default: "no description"}}</td>
                <td>{{section_page.url}}</td>
            </tr>
            {%- endfor %}
        </tbody>
    </table>
</div>
{%- endunless %}
{%- endfor %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elixir-toolkit-theme-4.2.0 _includes/pageids-overview.html
elixir-toolkit-theme-4.1.0 _includes/pageids-overview.html
elixir-toolkit-theme-4.0.0 _includes/pageids-overview.html
elixir-toolkit-theme-3.2.0 _includes/pageids-overview.html