diff --git a/_data/ui-text.yml b/_data/ui-text.yml index dea7b695..b9467303 100644 --- a/_data/ui-text.yml +++ b/_data/ui-text.yml @@ -1,19 +1,21 @@ -# User interface text for localization +# User interface text and labels -locale: - # English (default) - # ----------------- - en: &DEFAULT_EN - pagination_previous: "Previous" - pagination_next: "Next" - toc_label: "Overview" - share_on: "Share on" - date_label: "Last Updated:" - related_label: "You May Also Enjoy" - follow_label: "Follow:" - feed_label: "Feed" - powered_by: "Powered by" - en_US: - <<: *DEFAULT_EN - en_UK: - <<: *DEFAULT_EN \ No newline at end of file +# English (default) +# ----------------- +en: &DEFAULT_EN + pagination_previous: "Previous" + pagination_next: "Next" + toc_label: "Overview" + share_on: "Share on" + date_label: "Last Updated:" + related_label: "You May Also Enjoy" + follow_label: "Follow:" + feed_label: "Feed" + powered_by: "Powered by" +en_US: + <<: *DEFAULT_EN +en_UK: + <<: *DEFAULT_EN + +# Another locale +# -------------- diff --git a/_includes/footer b/_includes/footer index b040ab1e..72ac11a6 100644 --- a/_includes/footer +++ b/_includes/footer @@ -16,15 +16,15 @@
- + diff --git a/_includes/pagination b/_includes/pagination index 975b1626..2d8c1944 100644 --- a/_includes/pagination +++ b/_includes/pagination @@ -6,9 +6,9 @@ {% comment %} Link for previous page {% endcomment %} {% if paginator.previous_page %} {% if paginator.previous_page == 1 %} -
  • {{ site.data.ui-text.locale[site.locale].pagination_previous }}
  • +
  • {{ site.data.ui-text[site.locale].pagination_previous }}
  • {% else %} -
  • {{ site.data.ui-text.locale[site.locale].pagination_previous }}
  • +
  • {{ site.data.ui-text[site.locale].pagination_previous }}
  • {% endif %} {% endif %} @@ -59,7 +59,7 @@ {% comment %}Link next page{% endcomment %} {% if paginator.next_page %} -
  • {{ site.data.ui-text.locale[site.locale].pagination_next }}
  • +
  • {{ site.data.ui-text[site.locale].pagination_next }}
  • {% endif %} diff --git a/_includes/social-share b/_includes/social-share index ee72890f..49d512dc 100644 --- a/_includes/social-share +++ b/_includes/social-share @@ -1,5 +1,5 @@
    -

    {{ site.data.ui-text.locale[site.locale].share_on }}

    +

    {{ site.data.ui-text[site.locale].share_on }}