first commit
This commit is contained in:
commit
8298c15349
93 changed files with 2886 additions and 0 deletions
27
templates/meta-section.html
Normal file
27
templates/meta-section.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{%- block content -%}
|
||||
<h1>{{ section.title }}</h1>
|
||||
|
||||
{{ section.content | safe }}
|
||||
|
||||
{% for sect in section.extra.sections %}
|
||||
{%- set section = get_section(path=sect ~ "/_index.md") %}
|
||||
{%- if section.pages | length > 0 -%}
|
||||
<ul class="title-list">
|
||||
<h2>{{ section.title }}</h2>
|
||||
{%- for page in section.pages %}
|
||||
{%- if loop.index <= 5 %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
|
||||
</li>
|
||||
{%- else -%}
|
||||
<a href="{{ section.permalink | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
|
||||
{% break %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue