Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fixed zero indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipahereza committed Jun 19, 2018
1 parent 9fa810a commit a0c6c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 class="text-center display-3 font-weight-bold my-4">Country Report Contents<

{# If it's a section #}
{% for section in page.get_parent.specific.sections.all %}
{% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section %}
{% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section counter=forloop.counter%}
{% endfor %}
</div>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="{{ section.url|default:'../' }}">
{% endif %}
<div class="jumbotron jumbotron-fluid border-top bg-white">
<p class="text-uppercase">Section {{ counter }}</p>
<p class="text-uppercase">Section {{ counter | add:"1" }}</p>
<h1 class="display-4">{{ section.title|default:"Country Overview" }}</h1>
{% with default_desc="A top-level overview of "|add:page.title|add:" – how it’s governed, the make-up of it’s population, the economy and SDG indicators" %}
<p>{{ section.description|default:default_desc }}</p>
Expand Down

0 comments on commit a0c6c6e

Please sign in to comment.