Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI-text variable and add Danish Translation for Back to top #1598

Merged
merged 4 commits into from
Mar 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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