Move breadcrumb text out of _config.yml and into ui-text.yml data file

This commit is contained in:
Michael Rose 2016-04-05 21:36:32 -04:00
parent 20fe00d058
commit 1c8239f664
3 changed files with 26 additions and 26 deletions

View File

@ -17,8 +17,6 @@ email : # e.g. "your-email@domain.com"
logo : "site-logo.png" logo : "site-logo.png"
teaser : "500x300.png" teaser : "500x300.png"
breadcrumbs : # true, false (default) breadcrumbs : # true, false (default)
breadcrumb_home_label : "Home"
breadcrumb_separator : "/"
twitter: twitter:
username : &twitter "mmistakes" username : &twitter "mmistakes"
facebook: facebook:

View File

@ -3,27 +3,29 @@
# English (default) # English (default)
# ----------------- # -----------------
en: &DEFAULT_EN en: &DEFAULT_EN
page : "Page" page : "Page"
pagination_previous : "Previous" pagination_previous : "Previous"
pagination_next : "Next" pagination_next : "Next"
toc_label : "On This Page" breadcrumb_home_label : "Home"
ext_link_label : "Direct Link" breadcrumb_separator : "/"
less_than : "less than" toc_label : "On This Page"
minute_read : "minute read" ext_link_label : "Direct Link"
minutes_read : "minutes read" less_than : "less than"
share_on_label : "Share on" minute_read : "minute read"
meta_label : minutes_read : "minutes read"
tags_label : "Tags:" share_on_label : "Share on"
categories_label : "Categories:" meta_label :
date_label : "Updated:" tags_label : "Tags:"
comments_label : "Leave a Comment" categories_label : "Categories:"
more_label : "Learn More" date_label : "Updated:"
related_label : "You May Also Enjoy" comments_label : "Leave a Comment"
follow_label : "Follow:" more_label : "Learn More"
feed_label : "Feed" related_label : "You May Also Enjoy"
powered_by : "Powered by" follow_label : "Follow:"
website_label : "Website" feed_label : "Feed"
email_label : "Email" powered_by : "Powered by"
website_label : "Website"
email_label : "Email"
en_US: en_US:
<<: *DEFAULT_EN <<: *DEFAULT_EN
en_UK: en_UK:

View File

@ -19,10 +19,10 @@
{% for crumb in crumbs offset: 1 %} {% for crumb in crumbs offset: 1 %}
{% if forloop.first %} {% if forloop.first %}
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="{{ base_path }}/" itemprop="item"><span itemprop="name">{{ site.breadcrumb_home_label }}</span></a> <a href="{{ base_path }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label }}</span></a>
<meta itemprop="position" content="{{ i }}" /> <meta itemprop="position" content="{{ i }}" />
</li> </li>
<span class="sep">{{ site.breadcrumb_separator }}</span> <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator }}</span>
{% endif %} {% endif %}
{% if forloop.last %} {% if forloop.last %}
<li class="current">{{ page.title }}</li> <li class="current">{{ page.title }}</li>
@ -32,7 +32,7 @@
<a href="{{ base_path }}{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a> <a href="{{ base_path }}{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
<meta itemprop="position" content="{{ i }}" /> <meta itemprop="position" content="{{ i }}" />
</li> </li>
<span class="sep">{{ site.breadcrumb_separator }}</span> <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator }}</span>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ol> </ol>