Skip to content

Commit

Permalink
Make mini-grants title in homepage translatable (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
aivuk committed Jan 19, 2022
1 parent 05b6ecd commit 70ceb0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion content/contents+pt_br.lr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ title: Você está convidada(o)
banner_heading_1: Você está convidada(o).
---
banner_heading_2: De novo!

---
mini_grants_title: Dia dos dados abertos<br/>Mini-grants
---
intro_heading: O que é o Dia dos Dados Abertos?
---
Expand Down
4 changes: 4 additions & 0 deletions models/home.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ type = date
label = Intro heading
type = string

[fields.mini_grants_title]
label = Mini-grants home title
type = markdown

[fields.intro_body]
label = Intro body
type = markdown
Expand Down
7 changes: 6 additions & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ <h2>{{ this.intro_heading }}</h2>
</div>
<div class="this-year">
<header>
<h2>Open Data Day<br /> mini-grants</h2>
<h2>{% if this.mini_grants_title %}
{{ this.mini_grants_title }}
{% else %}
Open Data Day<br /> mini-grants
{% endif %}
</h2>
{{ this.year_intro }}
</header>
<ul>
Expand Down

0 comments on commit 70ceb0e

Please sign in to comment.