Skip to content

Commit

Permalink
Refactored blog_index.html to iterate over pages instead of sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jun 18, 2024
1 parent 5e4c1cc commit 133edc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/blog_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
<h1 class="title">{{ page.title }}</h1>

<ul>
{% for section in sections %}
{% for page in section.pages %}
{% for page in pages %}
<li>
<a class="has-text-link" href="{{ page.permalink }}">{{ page.title }}</a><br>
<small class="has-text-grey">{{ page.date | date(format="long") }}</small>
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit 133edc0

Please sign in to comment.