Move posts to the bottom in the index template
This commit is contained in:
parent
8e585cf7f3
commit
00d21a089d
1 changed files with 24 additions and 23 deletions
|
|
@ -20,29 +20,6 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h2 class="index-h2">
|
|
||||||
{%- if lang == "pt" %}Últimos posts{% else %}Latest posts{% endif -%}
|
|
||||||
</h2>
|
|
||||||
{%- if lang == "pt" %}
|
|
||||||
{%- set posts = get_section(path="posts/_index.pt.md") %}
|
|
||||||
{%- else %}
|
|
||||||
{%- set posts = get_section(path="posts/_index.md") %}
|
|
||||||
{%- endif %}
|
|
||||||
<nav class="index-posts">
|
|
||||||
<ul id="posts">
|
|
||||||
{% for post in posts.pages %}
|
|
||||||
<li>
|
|
||||||
<span class="post-date">{{ post.date | date(format="%Y-%m-%d") }}</span>
|
|
||||||
<a href="{{ post.permalink | safe }}">{{ post.title }}</a>
|
|
||||||
</li>
|
|
||||||
{% if loop.index == 5 %}{% break %}{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<p class="index-see-all"><a href="{{ posts.permalink }}">
|
|
||||||
{%- if lang == "pt" %}Ver todos{% else %}See all{% endif %}
|
|
||||||
</a></p>
|
|
||||||
|
|
||||||
<h2 class="index-h2">
|
<h2 class="index-h2">
|
||||||
{%- if lang == "pt" %}Últimas notas{% else %}Latest notes{% endif -%}
|
{%- if lang == "pt" %}Últimas notas{% else %}Latest notes{% endif -%}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
@ -97,4 +74,28 @@
|
||||||
{%- if lang == "pt" %}Ver todos{% else %}See all{% endif %}
|
{%- if lang == "pt" %}Ver todos{% else %}See all{% endif %}
|
||||||
</a></p>
|
</a></p>
|
||||||
|
|
||||||
|
<h2 class="index-h2">
|
||||||
|
{%- if lang == "pt" %}Últimos posts{% else %}Latest posts{% endif -%}
|
||||||
|
</h2>
|
||||||
|
{%- if lang == "pt" %}
|
||||||
|
{%- set posts = get_section(path="posts/_index.pt.md") %}
|
||||||
|
{%- else %}
|
||||||
|
{%- set posts = get_section(path="posts/_index.md") %}
|
||||||
|
{%- endif %}
|
||||||
|
<nav class="index-posts">
|
||||||
|
<ul id="posts">
|
||||||
|
{% for post in posts.pages %}
|
||||||
|
<li>
|
||||||
|
<span class="post-date">{{ post.date | date(format="%Y-%m-%d") }}</span>
|
||||||
|
<a href="{{ post.permalink | safe }}">{{ post.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% if loop.index == 5 %}{% break %}{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<p class="index-see-all"><a href="{{ posts.permalink }}">
|
||||||
|
{%- if lang == "pt" %}Ver todos{% else %}See all{% endif %}
|
||||||
|
</a></p>
|
||||||
|
|
||||||
|
|
||||||
{%- endblock content %}
|
{%- endblock content %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue