~xdavidwu/xdavidwu.link

970e9f9eba246a096b570d547384fd0bc6c01181 — Lars Olesen 6 years ago dfd0f06
Fix UI-text variable and add Danish Translation for Back to top (#1598)

* Added Danish Translation for Back to top

* Update categories.html

* Update tags.html

* Update posts.html
4 files changed, 6 insertions(+), 4 deletions(-)

M _data/ui-text.yml
M _layouts/categories.html
M _layouts/posts.html
M _layouts/tags.html
M _data/ui-text.yml => _data/ui-text.yml +2 -0
@@ 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:


@@ 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


M _layouts/categories.html => _layouts/categories.html +1 -1
@@ 41,7 41,7 @@ layout: archive
            {% 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 %}

M _layouts/posts.html => _layouts/posts.html +2 -2
@@ 24,6 24,6 @@ layout: archive
        {% 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 %}
\ No newline at end of file
{% endfor %}

M _layouts/tags.html => _layouts/tags.html +1 -1
@@ 41,7 41,7 @@ layout: archive
            {% 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 %}