{% seo %} {% comment %} Page URLs carry a .html suffix, nav entries do not. Normalise both to a trailing slash so the current page matches either spelling. {% endcomment %} {% assign here = page.url | remove: '.html' | append: '/' | replace: '//', '/' %} {% comment %} Find which nav group holds this page. The group title becomes the eyebrow above the page heading, so a reader always knows which part of the documentation they are standing in. {% endcomment %} {% assign eyebrow = '' %} {% for group in site.data.nav %} {% for item in group.items %} {% assign there = item.url | append: '/' | replace: '//', '/' %} {% if here == there %}{% assign eyebrow = group.title %}{% endif %} {% endfor %} {% endfor %}
{{ site.title | default: site.github.repository_name }}

{{ site.description | default: site.github.project_tagline }}

{% if eyebrow != '' %}{{ eyebrow }}{% endif %}

{{ page.title | default: site.title }}

{{ content }}