Skip to content

Commit

Permalink
Fix UI-text variable and add Danish Translation for Back to top (mmis…
Browse files Browse the repository at this point in the history
…takes#1598)

* Added Danish Translation for Back to top

* Update categories.html

* Update tags.html

* Update posts.html
  • Loading branch information
lsolesen authored and mmistakes committed Mar 29, 2018
1 parent c0ddb45 commit a236804
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions _data/ui-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ en: &DEFAULT_EN
loading_label : "Loading..."
search_placeholder_text : "Enter your search term..."
results_found : "Result(s) found"
back_to_top : "Back to top"
en-US:
<<: *DEFAULT_EN
en-CA:
Expand Down Expand Up @@ -890,6 +891,7 @@ da: &DEFAULT_DA
loading_label : "Indlæser..."
search_placeholder_text : "Hvad leder du efter..."
results_found : "Resultat(er) fundet"
back_to_top : "Tilbage til toppen"
da-DK:
<<: *DEFAULT_DA

Expand Down
2 changes: 1 addition & 1 deletion _layouts/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 class="archive__subtitle">{{ category[0] }}</h2>
{% include archive-single.html type=page.entries_layout %}
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
</section>
{% endif %}
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ <h2 class="archive__subtitle">{{ year.name }}</h2>
{% include archive-single.html type=page.entries_layout %}
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
</section>
{% endfor %}
{% endfor %}
2 changes: 1 addition & 1 deletion _layouts/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 class="archive__subtitle">{{ tag[0] }}</h2>
{% include archive-single.html type=page.entries_layout %}
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
</section>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit a236804

Please sign in to comment.