• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2Copyright 2024 The Pigweed Authors
3
4Licensed under the Apache License, Version 2.0 (the "License"); you may not
5use this file except in compliance with the License. You may obtain a copy of
6the License at
7
8    https://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13License for the specific language governing permissions and limitations under
14the License.
15-->
16{% extends "furo/page.html" %}
17
18{% block body %}
19  {# (a11y) Always provide the skip link as the very first thing in the body
20     so that people who navigate the site with their keyboard don't need to
21     tab through the entire site nav. https://pwbug.dev/344643289 #}
22  <a id="skip" href="#skip-target">Skip to main content</a>
23  {{ super() }}
24{% endblock body %}
25
26{% block content %}
27  {% if pagename == 'index' %}
28    {# Don't render breadcrumbs on the homepage. #}
29  {% else %}
30    {# The marker used between breadcrumbs. #}
31    {%- set delimiter = ' /' %}
32    {# Add breadcrumbs as the first thing in the "content" block. #}
33    <ul class="breadcrumbs">
34      {# Hardcode the homepage to ensure it's always the first breadcrumb. #}
35      <li class="breadcrumb">
36        <a href="{{ pathto('index.html', 1) }}">Home</a>
37      </li>
38      {{ delimiter }}
39      {# Add a breadcrumb for each true "parent" of the current doc. #}
40      {%- for parent in parents %}
41        <li class="breadcrumb">
42          <a href="{{ parent.link|e }}">{{ parent.title }}</a>
43          {{ delimiter }}
44        </li>
45      {%- endfor %}
46      {# Hardcode the current page as the last breadcrumb. #}
47      <li class="breadcrumb">{{ title }}</li>
48    </ul>
49  {% endif %}
50  {# Focus will be here after using the "skip to main content" link. #}
51  <span id="skip-target"></span>
52  {{ super() }}
53{% endblock content %}
54