+ + {% if site.frontpage_introduction_banner %} +
+

{{ site.frontpage_introduction_banner.title | t }}

+
{{ site.frontpage_introduction_banner.description | t }}
+
+ {% endif %} + {% assign country_name = site.country.name | t %} -

{{ t.frontpage.instructions | replace_first: '%before_link', '' | replace_first: '%name', country_name }}

- {%- assign goals = site.goals | where: 'language', current_language -%} - {% for goal in goals %} - {%- assign goal_number = goal.sdg_goal -%} - {%- assign default_goal = site.data.translations[default_language].global_goals[goal_number] -%} - {%- assign translated_goal = t.global_goals[goal_number] -%} + {% assign instructions_default = page.t.frontpage.instructions | replace_first: '%before_link', '' | replace_first: '%after_link', '' | replace_first: '%name', country_name %} +

{{ site.frontpage_instructions | default: instructions_default | t }}

+ {% for goal in page.goals %} {% cycle 'add row' : '
', '', '', '', '', '' %} {% cycle 'end row' : '', '', '', '', '', '
' %} {% endfor %} + {% comment %} + If there were exactly 17 goals, "pad" it with 1 more, to make it come + out more symmetrically. + {% endcomment %} + {% if page.goals.size == 17 %}
- The Global Goals for Sustainable Development + The Global Goals for Sustainable Development
+ {% endif %}