--- layout: --- {% capture empty %} {% comment %} Cockpit-specific guide template {% endcomment %} {% assign html_tag = '
{% assign _favicon = site.static_files | where_exp: "item", "item.path contains '/images/favicon.'" %} {% if _favicon[0] %} {% endif %} {{ head_tag }} {% endcapture %} {% capture header_html %}{% include page_header.html %}{% endcapture %} {% if content contains book_tag %} {% assign header_orig = book_tag %} {% assign header_mod = book_tag | prepend: header_html %} {% assign toc_mod = toc_tag | append: role_main %} {% else %} {% assign header_orig = nav_tag %} {% assign header_mod = nav_tag | prepend: header_html | append: role_nav %} {% assign ref_mod = ref_tag | append: role_main %} {% assign chap_mod = chap_tag | append: role_main %} {% assign part_mod = part_tag | append: role_main %} {% assign toc_mod = toc_tag %} {% endif %} {% endcapture %}{{ content | replace_first: html_tag, html_mod | replace_first: head_tag, head_mod | replace_first: ref_tag, ref_mod | replace_first: chap_tag, chap_mod | replace_first: part_tag, part_mod | replace_first: toc_tag, toc_mod | replace_first: header_orig, header_mod }}