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

@ -19,10 +19,10 @@
{% for crumb in crumbs offset: 1 %}
{% if forloop.first %}
<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 }}" />
</li>
<span class="sep">{{ site.breadcrumb_separator }}</span>
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator }}</span>
{% endif %}
{% if forloop.last %}
<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>
<meta itemprop="position" content="{{ i }}" />
</li>
<span class="sep">{{ site.breadcrumb_separator }}</span>
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator }}</span>
{% endif %}
{% endfor %}
</ol>