if root contains root_tag %}
      {%- capture target %}/{{ root | replace: "hardware","machines" }}{% endcapture %}
      {%- assign title = data['@title'] | default: item['@title'] %}
      {%- capture link %}{{ target }}/{% endcapture %}
      {%- include gallery/documents.html target=target title=title link=link style="left" width=width height=height %}
      {%- assign alldocs_exist = true %}
    {%- endif %}
  {%- endif %}
{%- endfor %}
{%- if include.saveroot != nil %}
  {%- assign root = include.sav