{%- assign pagelang = 'en' -%} {%- if page.lang -%} {%- assign pagelang = page.lang -%} {%- endif -%} {%- if pagelang == 'en' -%} {%- assign enpage = page -%} {%- else -%} {%- assign enpage=site.documents | where:"ref", page.ref | where: "lang", "en" | first -%} {%- unless enpage.ref -%} {%- assign enpage=site.pages | where:"ref", page.ref | where: "lang", "en" | first -%} {%- endunless -%} {%- endif -%} {%- assign englishpageurl = enpage.url %} {% assign translations=site.documents | where:"ref", page.ref | where_exp:"item", "item.lang != 'en'" | sort: 'lang' %} {%- unless translations[0].ref -%} {% assign translations=site.pages | where:"ref", page.ref | where_exp:"item", "item.lang != 'en'" | sort: 'lang' %} {%- endunless -%} {%- assign timestamp = site.time | date: '%s%N' -%} {%- assign timestamp = '?' | append: timestamp -%} {%- include_cached head.html type="start" timestamp=timestamp -%} {%- if site.data.lang[pagelang].rtl -%} W3C | {{ site.title | escape }} | {{ page.title | escape }} {%if page.doc-note-type == "archived" %}[{% include t.html t="Archived" %}]{% endif%}{%if page.doc-note-type == "draft" %}[{% include t.html t="Draft" %}]{% endif%} {%- else -%} {%if page.doc-note-type == "archived" %}[{% include t.html t="Archived" %}]{% endif%}{%if page.doc-note-type == "draft" %}[{% include t.html t="Draft" %}]{% endif%} {{ page.title | escape }} | {{ site.title | escape }} | W3C {%- endif -%} {%- if page.external_css %}{% endif -%} {%- if page.ext_css %}{% endif -%} {%- if page.inline_css %}{% endif -%} {%- capture seo -%} {%- seo title=false -%} {%- endcapture -%} {{- seo | replace: '', '' -}} {%- unless page.image -%}{%- if site.twitter.image -%}{% assign twimage = site.twitter.image -%}{%- else -%}{% assign twimage = '/assets/images/social-sharing-default.jpg' -%}{%- endif -%} {%- endunless -%} {% include_cached head.html type="end" %} {% include header.html translations=translations %}
{% include secondarynav.html parent=page.parent %}

{% if page.title_icon %} {% endif %}{% if page.title_html %}{{ page.title_html }}{% else %}{{ page.title }}{% endif %}

{%- include doc-note-msg.html -%} {%- include translation-note-msg.html -%} {{ content }} {{page.wcag_success_criteria}}{{page.wcag_techniques}} {% if page.wcag_success_criteria or page.wcag_techniques %} {% include resources.html %} {% endif %} {%- if page.navigation -%} {%- include prevnext-navigation.html -%} {%- else -%} {%- if page.order -%} {%- include prevnext-order.html -%} {%- endif -%} {%- endif -%} {% include feedback-box.html %} {% include_cached backtotop.html lang=page.lang %}
{% include footer.html %}