diff --git a/_layouts/home-infographic.html b/_layouts/home-infographic.html index de78a903..063c29b9 100644 --- a/_layouts/home-infographic.html +++ b/_layouts/home-infographic.html @@ -3,21 +3,25 @@ layout: page --- {%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%} +{%- assign sample_items = site.data.translations['_includes']['_layouts']['home-infographic.html']['sample-items'][site.lang] | default: 'Sample Items' -%} +{%- assign top_subjects = site.data.translations['_includes']['_layouts']['home-infographic.html']['top-subjects'][site.lang] | default: 'Top Subjects' -%} +{%- assign locations = site.data.translations['_includes']['_layouts']['home-infographic.html']['locations'][site.lang] | default: 'Locations' -%} +
{% include index/description.html %} - {% include index/carousel.html title="Sample Items" %} + {% include index/carousel.html title=sample_items %}
{% include index/time.html %} - {% include index/featured-terms.html field="subject" title="Top Subjects" btn-color="primary" %} + {% include index/featured-terms.html field="subject" title=top_subjects btn-color="primary" %} - {% include index/featured-terms.html field="location" title="Locations" btn-color="outline-secondary" %} + {% include index/featured-terms.html field="location" title=locations btn-color="outline-secondary" %} {% include index/objects.html %} diff --git a/_layouts/item/item-page-base.html b/_layouts/item/item-page-base.html index 1ac92af2..d85df2d6 100644 --- a/_layouts/item/item-page-base.html +++ b/_layouts/item/item-page-base.html @@ -8,10 +8,10 @@
{% include item/breadcrumbs.html %} -
{{ page.display_template | replace: "_", " " | upcase }} {% if page.display_template == "compound_object" or page.display_template == "multiple" %}{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %} ({{ children | size }} Items){% endif %}
+
{{ page.display_template | replace: "_", " " | upcase }} {% if page.display_template == "compound_object" or page.display_template == "multiple" %}{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %} ({{ children | size }} {{ site.data.translations['_includes']['_layouts']['item']['item-page-base.html']['items'][site.lang] | default: 'Items'}}){% endif %}

{{ page.title }} - {% unless page.display_template == 'record' %}Item Info - + {% unless page.display_template == 'record' %}{{ site.data.translations['_includes']['_layouts']['item']['item-page-base.html']['item-info'][site.lang] | default: 'Item Info'}} + {% endunless %} diff --git a/_layouts/item/item-page-full-width.html b/_layouts/item/item-page-full-width.html index a8aebb5d..689d6cda 100644 --- a/_layouts/item/item-page-full-width.html +++ b/_layouts/item/item-page-full-width.html @@ -11,8 +11,8 @@ {% include item/breadcrumbs.html %}
{{ page.display_template | replace: "_", " " | upcase }} {% if page.display_template == "compound_object" %} ({{ children | size }} Items){% endif %}

{{ page.title }} - {% unless page.display_template == 'record' %}Item Info - + {% unless page.display_template == 'record' %}{{ site.data.translations['_includes']['_layouts']['item']['item-page-full-width.html']['item-info'][site.lang] | default: 'Item Info'}} + {% endunless %} diff --git a/_layouts/search.html b/_layouts/search.html index eac8c195..7e8c63ef 100644 --- a/_layouts/search.html +++ b/_layouts/search.html @@ -5,22 +5,22 @@ --- {%- assign fields = site.data.config-search | where: 'index',true | map: 'field' -%} - +