wai-website-theme 0.1.6 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/_includes/backtotop.html +1 -0
  3. data/_includes/body-class.html +1 -1
  4. data/_includes/box.html +2 -0
  5. data/_includes/different.html +1 -0
  6. data/_includes/doc-note-msg.html +10 -0
  7. data/_includes/excol.html +13 -12
  8. data/_includes/external.html +1 -0
  9. data/_includes/feedback-box.html +62 -0
  10. data/_includes/footer.html +55 -27
  11. data/_includes/head.html +8 -9
  12. data/_includes/header.html +127 -30
  13. data/_includes/icon.html +6 -6
  14. data/_includes/img.html +1 -1
  15. data/_includes/menuitem.html +13 -0
  16. data/_includes/navlist.html +9 -21
  17. data/_includes/path.html +6 -0
  18. data/_includes/prevnext.html +18 -16
  19. data/_includes/resources.html +3 -3
  20. data/_includes/secondarynav.html +70 -0
  21. data/_includes/sidenav.html +42 -48
  22. data/_includes/sitemap.html +29 -0
  23. data/_includes/video-link.html +5 -0
  24. data/_includes/video-player.html +12 -10
  25. data/_layouts/default.html +30 -10
  26. data/_layouts/home.html +17 -4
  27. data/_layouts/news.html +26 -8
  28. data/_layouts/policy.html +23 -9
  29. data/_layouts/sidenav.html +28 -9
  30. data/_layouts/sidenavsidebar.html +29 -9
  31. data/assets/css/style.css +1 -4407
  32. data/assets/css/style.css.map +1 -1
  33. data/assets/fonts/notosans-bold-subset.woff +0 -0
  34. data/assets/fonts/notosans-bold-subset.woff2 +0 -0
  35. data/assets/fonts/notosans-bolditalic-subset.woff +0 -0
  36. data/assets/fonts/notosans-bolditalic-subset.woff2 +0 -0
  37. data/assets/fonts/notosans-italic-subset.woff +0 -0
  38. data/assets/fonts/notosans-italic-subset.woff2 +0 -0
  39. data/assets/fonts/notosans-regular-subset.woff +0 -0
  40. data/assets/fonts/notosans-regular-subset.woff2 +0 -0
  41. data/assets/images/icons.svg +36 -1
  42. data/assets/images/social-sharing-default.jpg +0 -0
  43. data/assets/images/video-mask-16-9.svg +1 -0
  44. data/assets/images/video-mask-4-3.svg +1 -0
  45. data/assets/images/video-still-accessibility-intro-16-9.jpg +0 -0
  46. data/assets/scripts/details4everybody.js +153 -0
  47. data/assets/scripts/main.js +279 -64
  48. data/assets/search/tipuesearch.js +608 -0
  49. data/assets/search/tipuesearch_content.js +85 -0
  50. data/assets/search/tipuesearch_set.js +74 -0
  51. metadata +29 -6
  52. data/assets/images/.DS_Store +0 -0
  53. data/assets/images/teaser-image@1x.jpg +0 -0
  54. data/assets/images/teaser-image@2x.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 502673849b620886ecaaaeefb65353f4dce2e0f0
4
- data.tar.gz: 561542091d52be61fcfcb11d2c064fdc18bd5290
2
+ SHA256:
3
+ metadata.gz: 343aadce3fce603d00b3753e0daa9194fca79530cb5b1342686d0f2844ef6f47
4
+ data.tar.gz: 9e2ec97fc02dd8dc87a20718af44a006d46469bb1b6acc7212c7f43385261bc3
5
5
  SHA512:
6
- metadata.gz: 4691676b0b268fc3b8088a99bff9dbe7ff8fde2c40c8530f18c6234a468675f4bacba1621fb1edf7a767abbdf537b5053115c57c9324ff577ea6576b854c1130
7
- data.tar.gz: b5d3debaf8dc15207e0cde7d19c209aeb050fc500e0db66ffc40c29a256b30c380984a22935509feea5e4efda1649182f9d41a49901f37c7070e100dda355392
6
+ metadata.gz: a9378495845f5126c3eeea900864fc1eef02e0d0be8b8af766b6ac56688fde5a04c4deaa180894b9c61740443441a1a763a3c3230667c3b2a235f9009922c10b
7
+ data.tar.gz: da7a7d2c5326d3e589769bd6b7e7faeebbf1f9317a658c85760f40b2c5e6fad21acce6f2f8132000850d1e2decdf9d7cf134a0df5586eefeb23696afa654ca1a
@@ -0,0 +1 @@
1
+ <a class="button button-backtotop" href="#top"><span>{% include_cached icon.html name="arrow-up" %} Back to Top</span></a>
@@ -1 +1 @@
1
- {% if page.collection %}resource-{{page.collection | slugify}}{% endif %} page-{{page.title | slugify}}
1
+ {% if include.collection %}resource-{{include.collection | slugify}}{% endif %}{%if include.doc-note-type %} doc-note doc-{{include.doc-note-type}}{% endif %}
data/_includes/box.html CHANGED
@@ -1,7 +1,9 @@
1
1
  {% if include.type == 'start' %}
2
2
  {% assign classes = include.class | split: " " %}
3
3
  <aside class="box{% for class in classes %} box-{{ class }}{% endfor %}"{% if include.id %} id="{{include.id}}"{% endif %}>
4
+ {%- if include.title -%}
4
5
  <header class="box-h {% for class in classes %} box-h-{{ class }}{% endfor %}{% if include.icon %} box-h-icon{% endif %}">{% if include.icon %} {% include_cached icon.html name=include.icon %}{% endif %}{% if include.h %} <h{{include.h}}>{% endif %} {{ include.title}}{% if include.h %} </h{{include.h}}>{% endif %}</header>
6
+ {%- endif -%}
5
7
  <div class="box-i">
6
8
  {% endif %}
7
9
  {% if include.type == 'end' %}
@@ -0,0 +1 @@
1
+ {% include_cached icon.html name="different-view" label="Different View" %}
@@ -0,0 +1,10 @@
1
+ {%- if page.doc-note-message -%}
2
+ <section class="doc-note-box">
3
+ {{page.doc-note-message}}
4
+ </section>
5
+ {%- endif -%}
6
+ {%- if page.doc-note-message-md -%}
7
+ <section class="doc-note-box">
8
+ {{page.doc-note-message-md | markdownify }}
9
+ </section>
10
+ {%- endif -%}
data/_includes/excol.html CHANGED
@@ -1,13 +1,14 @@
1
- {% if include.type == 'start' %}
2
- <details{%if include.id%} id="{{include.id}}"{% endif %} {%if include.open%}open{% endif %}><summary markdown="block">
3
- {% else %}
4
- {% if include.type == 'middle' %}
5
- </summary>
6
- <div markdown="block">
7
- {% else %}
8
- {% if include.type == 'end' %}
9
- </div>
1
+ {%- if include.type == 'start' -%}
2
+ <details{%if include.id%} id="{{include.id}}"{% endif %} {%if include.open == "true" %}open{% endif %}><summary markdown="block">
3
+ {%- endif -%}
4
+ {%- if include.type == 'middle' -%}
5
+ </summary>
6
+ <div markdown="block">
7
+ {%- endif -%}
8
+ {%- if include.type == 'end' -%}
9
+ </div>
10
10
  </details>
11
- {% endif %}
12
- {% endif %}
13
- {% endif %}
11
+ {%- endif -%}
12
+ {%- if include.type == 'all' -%}
13
+ <div class="excol-all"></div>
14
+ {%- endif -%}
@@ -0,0 +1 @@
1
+ {% include_cached icon.html name="external-link" label="External Site" %}
@@ -0,0 +1,62 @@
1
+ {%- if page.collection -%}{%- assign col = site.collections | where: "label", page.collection | first -%}{%- endif- %}
2
+ {%- assign helptitle = "Help improve this page" -%}
3
+ {%- if page.feedbackmail -%}
4
+ {%- assign feedbackmail = page.feedbackmail -%}
5
+ {%- else -%}
6
+ {%- assign feedbackmail = "wai-eo-editors@w3.org" -%}
7
+ {%- endif -%}
8
+ {%- capture helpdesc -%}Please share your ideas, suggestions, or comments via e-mail to the publicly-archived list [{{feedbackmail}}](mailto:{{feedbackmail}}?subject=%s) or via GitHub.{%- endcapture -%}
9
+
10
+ {%- unless page.github.hide -%}
11
+ {%- if page.github.repository -%}{%- assign repo = page.github.repository -%}{%endif%}
12
+
13
+ {%- if site.repository -%}
14
+ {%- assign repo = site.repository -%}
15
+ {%- endif- %}
16
+ {%- if page.collection -%}
17
+ {%- assign repo = col.repository -%}
18
+ {%- endif- %}
19
+ {%- if page.github.repository -%}
20
+ {%- assign repo = page.github.repository -%}
21
+ {%- endif- %}
22
+
23
+ {%- assign branch = "master" -%}
24
+ {%- if site.branch -%}
25
+ {%- assign branch = site.branch -%}
26
+ {%- endif- %}
27
+ {%- if page.collection -%}
28
+ {%- if col.branch -%}
29
+ {%- assign branch = col.branch -%}
30
+ {%- endif -%}
31
+ {%- endif- %}
32
+ {%- if page.github.branch -%}
33
+ {%- assign branch = page.github.branch -%}
34
+ {%- endif- %}
35
+
36
+ {%- assign path = "index.md" -%}
37
+ {%- if page.collection -%}
38
+ {%- assign path = page.path -%}
39
+ {%- endif- %}
40
+ {%- if page.github.path -%}
41
+ {%- assign path = page.github.path -%}
42
+ {%- endif- %}
43
+
44
+ {%- include box.html type="start" title=helptitle h=2 class="icon space-above" icon="comments" id="helpimprove" -%}
45
+ {%- assign url_title = page.title | uri_escape -%}
46
+ {% unless feedbackmail == "wai@w3.org" %}
47
+ {%- capture mailbody -%}[put comment here...]{%- endcapture -%}
48
+ {% else %}
49
+ {%- capture mailbody -%}[put comment here...]
50
+
51
+ I give permission to share this to a publicly-archived e-mail list.{%- endcapture -%}
52
+ {% endunless %}
53
+ {%- assign mailbody = mailbody | uri_escape -%}
54
+ {{- helpdesc | replace: "%s", url_title | markdownify -}}
55
+ <div class="button-group">
56
+ <a href="{{ "mailto:" | append: feedbackmail | append: "?subject=%s" | replace: "%s", url_title | append: "&body=" | append: mailbody }}" class="button"><span>E-mail</span></a>
57
+ <a href="https://github.com/{{repo}}/edit/{{branch}}/{{path}}" class="button"><span>Fork &amp; Edit on GitHub</span></a>
58
+ {%- comment -%}<a href="https://github.com/{{repo}}/issues" class="button"><span>List of GitHub Issues</span></a>{%- endcomment -%}
59
+ <a href="https://github.com/{{repo}}/issues/new" class="button"><span>New GitHub Issue</span></a>
60
+ </div>
61
+ {%- include box.html type="end" -%}
62
+ {%- endunless -%}
@@ -1,40 +1,68 @@
1
- {% assign col = site.collections | where: "label", page.collection | first %}
2
- {% unless page.nopagefooter %}
3
- <footer class="page-footer default-grid">
1
+ {%- assign col = site.collections | where: "label", page.collection | first -%}
2
+ {% if col.footer %}
3
+ <footer class="page-footer default-grid" aria-label="Page">
4
4
  <div class="inner">
5
- <p>
6
- <strong>Updated:</strong> {{page.date | date: "%-d %B %Y"}}<br>
7
- <strong>{{page.people.editorslabel}}:</strong> {% for p in page.people.editors%}<a href="{{p.url}}">{{p.name}}</a>{% if forloop.last %}.{% else %}, {% endif %}{% endfor %} <strong>Developed by the <a href="https://www.w3.org/WAI/EO/">Education and Outreach Working Group (EOWG)</a></strong>{% if page.support %} with support from {% for s in page.support%}{% unless forloop.first %}{% if forloop.last %}and {% endif %}{% endunless %}the <a href="{{s.url}}">{{s.name}}</a>{% if forloop.last %}.{% else %}, {% endif %}{% endfor %}{% endif %} {% if col.acknowledgements %}{% assign ackurl = page.collection | append: "/acknowledgements/" | prepend: site.github.url %}<a href="/{{ackurl}}">Acknowledgements</a>.{% endif %}
8
- </p>
5
+ {{col.footer}}
9
6
  </div>
10
7
  </footer>
11
- {% endunless %}
8
+ {% else %}
9
+ {% if page.footer %}
10
+ <footer class="page-footer default-grid" aria-label="Page">
11
+ <div class="inner">
12
+ {{page.footer}}
13
+ </div>
14
+ </footer>
15
+ {% endif %}
16
+ {% endif %}
12
17
 
13
- <footer class="site-footer grid-4q">
14
- <div class="q1-start q2-end">
15
- <p><a class="largelink" href="https://w3.org/WAI/">Web Accessibility Initiative</a></p>
16
- <p>Strategies, guidelines, resources to make the web accessible to people with disabilities</p>
17
- <p>Copyright © 2017 W3C® (MIT, ERCIM, Keio, Beihang). Usage policies apply.</p>
18
- </div>
19
- <div class="q3-start q3-end">
20
- <div class="footer-list-header">
21
- Give Us Feedback
18
+ <footer class="site-footer grid-4q" aria-label="Site">
19
+ <div class="q1-start q3-end about">
20
+ <div>
21
+ <p><a class="largelink" href="https://w3.org/WAI/">W3C Web Accessibility Initiative (WAI)</a></p>
22
+ <p>Strategies, standards, and supporting resources to make the Web accessible to people with disabilities.</p>
23
+ </div>
24
+ <div>
25
+ <p>Copyright &#xA9; {{ 'now' | date: "%Y" }} W3C <sup>&#xAE;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>) <a href="{{ "/about/using-wai-material/" | relative_url }}">Permission to Use WAI Material</a>.</p>
22
26
  </div>
23
- <ul>
24
- <li><a href="#">Publicly Archived List</a></li>
25
- <li><a href="#">WAI Staff-only List</a></li>
26
- </ul>
27
27
  </div>
28
28
  <div class="q4-start q4-end">
29
29
  <ul>
30
- <li><a href="{{ site.github.url }}/wai/contact/">Contact WAI</a></li>
31
- <li><a href="{{ site.github.url }}/sitemap/">Site Index</a></li>
32
- <li><a href="{{ site.github.url }}/wai/get-involved/">Help with the WAI Website</a></li>
33
- <li><a href="{{ site.github.url }}/privacy/">Privacy Statements</a></li>
30
+ <li><a href="{{ "/about/contacting/" | relative_url }}">Contact WAI</a></li>
31
+ <li><a href="{{ "/sitemap/" | relative_url }}">Site Map</a></li>
32
+ <li><a href="{{ "/news/" | relative_url }}">News</a></li>
33
+ <li><a href="{{ "/sitemap/#archive" | relative_url }}">Archive</a></li>
34
+ <li><a href="{{ "/about/accessibility-statement/" | relative_url }}">Accessibility Statement</a></li>
35
+ <li><a href="{{ "/roles/" | relative_url }}">Resources for Roles</a></li>
34
36
  </ul>
35
37
  </div>
36
38
  </footer>
39
+ {%- unless site.published == true -%}
37
40
  <section class="default-grid info" tabindex="0">
38
- <p class="inner">{% include_cached icon.html name="info" %} This is an unpublished draft preview. Please refer to our published website at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.
41
+ <p class="inner">{% if site.warning_icon %}{% include_cached icon.html name="info" %} {% endif %}{% if site.warning_message %}{{site.warning_message}}{% else %}This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.{% endif %}
39
42
  </p>
40
- </section>
43
+ </section>
44
+ {%- endunless -%}
45
+ <!-- Details4Everybody -->
46
+ <script src="{{ '/assets/scripts/details4everybody.js' | append: timestamp | relative_url }}"></script>
47
+ <!-- SVG4Everybody -->
48
+ <script src="{{ '/assets/scripts/svg4everybody.js' | append: timestamp | relative_url }}"></script>
49
+ <script>
50
+ svg4everybody();
51
+ </script>
52
+ <!-- Matomo -->
53
+ <script>
54
+ var _paq = _paq || [];
55
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
56
+ _paq.push(["setDoNotTrack", true]);
57
+ _paq.push(['trackPageView']);
58
+ _paq.push(['enableLinkTracking']);
59
+ (function() {
60
+ var u="//www.w3.org/analytics/piwik/";
61
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
62
+ _paq.push(['setSiteId', '328']);
63
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
64
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
65
+ })();
66
+ </script>
67
+ <noscript><p><img src="//www.w3.org/analytics/piwik/piwik.php?idsite=328&rec=1" style="border:0;" alt="" /></p></noscript>
68
+ <!-- End Matomo Code -->
data/_includes/head.html CHANGED
@@ -1,3 +1,4 @@
1
+ {% if include.type == 'start' %}
1
2
  <head>
2
3
  <meta charset="utf-8">
3
4
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
@@ -7,17 +8,15 @@
7
8
 
8
9
  function downloadJSAtOnload() {
9
10
  var element = document.createElement("script");
10
- element.src = "{{ "/assets/scripts/main.js" | prepend: site.github.url }}";
11
+ element.src = "{{ '/assets/scripts/main.js' | append: include.timestamp | relative_url }}";
11
12
  document.body.appendChild(element);
12
- document.body.dataset.menuExpanded = 'false';
13
13
  }
14
14
 
15
15
  window.addEventListener("load", downloadJSAtOnload, false);
16
16
  </script>
17
-
18
- <link rel="stylesheet" href="{{ "/assets/css/style.css" | prepend: site.github.url }}">
19
- {% if page.ext_css %}<link rel="stylesheet" href="{{ page.ext_css | prepend: '/css/' | prepend: page.collection | prepend: '/' | prepend: site.github.url }}">{% endif %}
20
-
21
- <title>{{ page.title | escape }} | {{ site.title | escape }} | W3C</title>
22
- {% seo title=false %}
23
- </head>
17
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | append: include.timestamp | relative_url }}">
18
+ {% endif %}
19
+ {% if include.type == 'end' %}
20
+ <link rel="alternate" type="application/rss+xml" href="{{ "/feed.xml" | relative_url }}">
21
+ </head>
22
+ {% endif %}
@@ -1,29 +1,46 @@
1
+ {%- comment -%}
2
+ The first section creates an array of page urls that are page urls of this collection. They then are compared to all page urls in the list below. Use group in the frontmatter to group pages.
3
+ {%- endcomment -%}
4
+ {%- assign col = site.collections | where: "label", page.collection | first -%}
5
+ {%- unless site.published == true -%}
6
+ <section class="default-grid info" tabindex="0">
7
+ <p class="inner">{% if site.warning_icon %}{% include_cached icon.html name="info" %} {% endif %}{% if site.warning_message %}{{site.warning_message}}{% else %}This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.{% endif %}
8
+ </p>
9
+ </section>
10
+ {%- endunless -%}
1
11
  <nav aria-label="Skip Link and Accessibility Options" id="controls" class="default-grid">
2
12
  <ul>
3
- <li><a href="#main">{% include_cached icon.html name="chevron-down" %} Skip to Content</a></li>
4
- <li><a href="#">Change Text Size or Colors</a></li>
13
+ <li><a href="#main">Skip to Content</a></li>
14
+ <li><a href="{{ "/meta/customize/" | relative_url }}">Change Text Size or Colors</a></li>
5
15
  </ul>
6
16
  </nav>
7
17
  <header id="site-header" class="default-grid with-gap">
8
- <a class="logos" href="{{ site.github.url }}/">
9
- <img src="{{ "/assets/images/w3c.svg" | prepend: site.github.url }}" alt="W3C">
10
- <span class="wai"><span class="wa">Web Accessibility</span> <span class="i">Initiative</span></span>
11
- </a>
18
+ <div class="logos">
19
+ <a class="home w3c" href="{{ "https://www.w3.org/" | relative_url }}">
20
+ <svg role="img" aria-label="W3C" viewBox="0 0 68 34" xmlns="http://www.w3.org/2000/svg"><g><path d="m16.117 1.006 5.759 19.58 5.759-19.58h4.17 11.444v1.946l-5.879 10.128c2.065.663 3.627 1.868 4.686 3.615 1.059 1.748 1.589 3.799 1.589 6.155 0 2.914-.775 5.363-2.324 7.348s-3.555 2.978-6.017 2.978c-1.854 0-3.469-.589-4.845-1.767-1.377-1.178-2.396-2.773-3.058-4.786l3.256-1.35c.477 1.218 1.106 2.178 1.887 2.879.781.702 1.701 1.052 2.76 1.052 1.112 0 2.052-.622 2.82-1.866.768-1.245 1.152-2.74 1.152-4.489 0-1.933-.411-3.429-1.231-4.488-.954-1.244-2.45-1.867-4.489-1.867h-1.588v-1.906l5.56-9.612h-6.712l-.382.65-8.163 27.548h-.397l-5.958-19.937-5.957 19.937h-.397l-9.53-32.168h4.17l5.759 19.58 3.892-13.185-1.906-6.395z"/><path d="m64.92 1.006c-.819 0-1.554.295-2.111.861-.591.6-.92 1.376-.92 2.178s.313 1.545.887 2.128c.583.591 1.334.912 2.145.912.793 0 1.562-.321 2.161-.903.574-.557.887-1.3.887-2.136 0-.811-.321-1.57-.878-2.136-.584-.592-1.344-.904-2.171-.904zm2.643 3.065c0 .701-.271 1.351-.768 1.832-.524.507-1.174.777-1.892.777-.675 0-1.342-.278-1.84-.785s-.777-1.157-.777-1.849.287-1.368.802-1.891c.481-.49 1.131-.751 1.84-.751.726 0 1.376.271 1.883.785.49.489.752 1.147.752 1.882zm-2.559-1.807h-1.3v3.445h.65v-1.469h.642l.701 1.469h.726l-.769-1.57c.498-.102.785-.439.785-.929 0-.625-.472-.946-1.435-.946zm-.118.422c.608 0 .886.169.886.591 0 .405-.278.549-.87.549h-.549v-1.14z"/><path d="m59.807.825.676 4.107-2.391 4.575s-.918-1.941-2.443-3.015c-1.285-.905-2.122-1.102-3.431-.832-1.681.347-3.587 2.357-4.419 4.835-.995 2.965-1.005 4.4-1.04 5.718-.056 2.113.277 3.362.277 3.362s-1.452-2.686-1.438-6.62c.009-2.808.451-5.354 1.75-7.867 1.143-2.209 2.842-3.535 4.35-3.691 1.559-.161 2.791.59 3.743 1.403 1 .854 2.01 2.721 2.01 2.721z"/><path d="m60.102 24.063s-1.057 1.889-1.715 2.617c-.659.728-1.837 2.01-3.292 2.651s-2.218.762-3.656.624c-1.437-.138-2.772-.97-3.24-1.317s-1.664-1.369-2.34-2.322-1.733-2.859-1.733-2.859.589 1.91.958 2.721c.212.467.864 1.894 1.789 3.136.863 1.159 2.539 3.154 5.086 3.604 2.547.451 4.297-.693 4.73-.97s1.346-1.042 1.924-1.66c.603-.645 1.174-1.468 1.49-1.962.231-.36.607-1.092.607-1.092z"/></g></svg>
21
+ </a>
22
+ <a class="home" href="{{ "/" | relative_url }}">
23
+ <span class="wai"><span class="wa">Web&nbsp;Accessibility</span> <span class="i"><span class="initieative">Initiative</span> <span>WAI</span></span></span>
24
+ </a>
25
+ <div class="claim">
26
+ <span>Strategies, standards, resources to make the Web accessible to people with disabilities</span>
27
+ </div>
28
+ <button class="button button-menu" aria-haspopup="true" aria-expanded="false" id="openmenu"><span>{% include_cached icon.html name="menu" %} Menu</span></button>
29
+ </div>
12
30
 
13
31
  <div class="navigations">
14
32
  <nav class="metanav" aria-label="Meta &amp; Search">
15
33
  <ul>
16
- <li><a href="{{ site.github.url }}/news/">News</a></li>
17
- <li><a href="{{ site.github.url }}/wai/get-involved/">Get Involved</a></li>
18
- <li><a href="{{ site.github.url }}/wai/about/">About W3C WAI</a></li>
34
+ <li><a href="{{ "/about/participating/" | relative_url }}">Get Involved</a></li>
35
+ <li><a href="{{ "/about/" | relative_url }}">About W3C WAI</a></li>
19
36
  <li>
20
- <form action="https://duckduckgo.com/" role="search" onsubmit="document.querySelector('#header-search').value = document.querySelector('#header-search').value + ' site:w3c.github.io/wai-website/'">
37
+ <form action="{{ "/search/" | relative_url }}" role="search">
21
38
  <div>
22
39
  <label for="header-search">
23
- <span class="l">Search:</span>
24
- <input id="header-search" type="search" name="q" placeholder="e.g. Tutorials">
40
+ <span class="visuallyhidden">Search:</span>
41
+ <input id="header-search" type="search" name="q" placeholder="Search" aria-label="search">
25
42
  </label>
26
- <button class="button button-icon button-nobg button-noborder"><span>{% include_cached icon.html name="search" %}</span></button>
43
+ <button class="button button-icon button-nobg button-noborder"><span>{% include_cached icon.html name="search" label="Submit Search" %}</span></button>
27
44
  </div>
28
45
  </form>
29
46
  </li>
@@ -31,29 +48,109 @@
31
48
  </nav>
32
49
  </div>
33
50
  </header>
51
+ {%- if page.parent == '/' -%}{%- assign parent_is_home = true -%}{% endif %}
52
+ {%- if col.parent == '/' -%}{%- assign parent_is_home = true -%}{% endif %}
53
+ {%- if col.parent == '/news/' -%}{%- assign parent_is_home = true -%}{% endif %}
54
+ {%- if parent_is_home -%}
55
+ {%- assign a_name = "" -%}
56
+ {%- assign a_url = "" -%}
57
+ {%- assign b_name = "" -%}
58
+ {%- assign b_url = "" -%}
59
+ {%- assign c_name = "" -%}
60
+ {%- assign c_url = "" -%}
61
+ {%- assign d_name = "" -%}
62
+ {%- assign d_url = "" -%}
63
+ {% else %}
64
+ {%- if col.parent -%}
65
+ {%- assign searchurl = col.parent -%}
66
+ {%- else -%}
67
+ {%- if page.parent -%}
68
+ {%- assign searchurl = page.parent -%}
69
+ {%- else -%}
70
+ {%- assign searchurl = page.url -%}
71
+ {%- endif -%}
72
+ {%- endif -%}
73
+ {%- assign search = true -%}
74
+ {%- for n in site.data.navigation -%}
75
+ {%- if search == true -%}
76
+ {%- assign b_name = "" -%}
77
+ {%- assign b_url = "" -%}
78
+ {%- assign c_name = "" -%}
79
+ {%- assign c_url = "" -%}
80
+ {%- assign d_name = "" -%}
81
+ {%- assign d_url = "" -%}
82
+ {%- assign a_name = n.name -%}
83
+ {%- assign a_url = n.pages[0].url -%}
84
+ {%- if a_url == searchurl %}{% assign search = false %}{% endif -%}
85
+ {%- if search == true -%}
86
+ {%- for n1 in n.pages -%}
87
+ {%- if search == true -%}
88
+ {%- assign c_name = "" -%}
89
+ {%- assign c_url = "" -%}
90
+ {%- assign d_name = "" -%}
91
+ {%- assign d_url = "" -%}
92
+ {%- assign b_name = n1.name -%}
93
+ {%- assign b_url = n1.url -%}
94
+ {%- if b_url == searchurl %}{% assign search = false %}{% endif -%}
95
+ {%- if search == true -%}
96
+ {%- for n2 in n1.pages -%}
97
+ {%- if search == true -%}
98
+ {%- assign d_name = "" -%}
99
+ {%- assign d_url = "" -%}
100
+ {%- assign c_name = n2.name -%}
101
+ {%- assign c_url = n2.url -%}
102
+ {%- if c_url == searchurl %}{% assign search = false %}{% endif -%}
103
+ {%- if search == true -%}
104
+ {%- for n3 in n2.pages -%}
105
+ {%- if search == true -%}
106
+ {%- assign d_name = n3.name -%}
107
+ {%- assign d_url = n3.url -%}
108
+ {%- if d_url == searchurl %}{% assign search = false %}{% endif -%}
109
+ {%- endif -%}
110
+ {%- endfor -%}
111
+ {%- endif -%}
112
+ {%- endif -%}
113
+ {%- endfor -%}
114
+ {%- endif -%}
115
+ {%- endif -%}
116
+ {%- endfor -%}
117
+ {%- endif -%}
118
+ {%- endif -%}
119
+ {%- endfor -%}
120
+ {%- endif -%}
121
+
34
122
  <nav class="mainnav" aria-label="Main">
35
- {% include navlist.html data=site.data.navigation depth=1 %}
123
+ {%- if page.url == "/" %}{% assign a_url = "" %}{% endif -%}
124
+ {%- include navlist.html data=site.data.navigation current=a_url -%}
36
125
  </nav>
37
126
 
38
- {% unless page.url == "/" %}
127
+ {%- unless page.url == "/" -%}
39
128
  <nav class="breadcrumb default-grid" aria-label="Breadcrumb">
40
129
  <ul class="default-container">
41
- <li><a href="{{ site.github.url }}/">Home</a></li>
42
- {% capture page_url_without_index_html %}{{ page.url | remove: "/index.html" }}{% endcapture %}
43
- {% assign splitted_url_parts = page_url_without_index_html | split: '/' %}
44
- {% capture forLoopMaxInt %}{{ splitted_url_parts.size | minus:1 }}{% endcapture %}
45
- {% for i in (1..forLoopMaxInt) %}
46
- {% capture current_breadcrumb_url %}{{next_prepender}}/{{ splitted_url_parts[i] }}/{% endcapture %}
47
- {% capture current_breadcrumb_md_url %}{{next_prepender}}/{{ splitted_url_parts[i] }}/{% endcapture %}
48
- {% capture next_prepender %}{{next_prepender}}/{{ splitted_url_parts[i] }}{% endcapture %}
49
- {% for breadcrumb_page in site.documents %}
50
- {% if current_breadcrumb_url == breadcrumb_page.url %}
130
+ <li><a href="{{ "/" | relative_url }}">Home</a></li>
131
+ {%- unless a_name == "" -%}<li><a href="{{ a_url | relative_url }}"{% if a_url == page.url%} aria-current="page"{%endif%}>{{a_name}}</a></li>{%- endunless -%}
132
+ {%- unless b_name == "" -%}<li><a href="{{ b_url | relative_url }}"{% if b_url == page.url%} aria-current="page"{%endif%}>{{b_name}}</a></li>{%- endunless -%}
133
+ {%- unless c_name == "" -%}<li><a href="{{ c_url | relative_url }}"{% if c_url == page.url%} aria-current="page"{%endif%}>{{c_name}}</a></li>{%- endunless -%}
134
+ {%- unless d_name == "" -%}<li><a href="{{ d_url | relative_url }}"{% if d_url == page.url%} aria-current="page"{%endif%}>{{d_name}}</a></li>{%- endunless -%}
135
+ {%- if col.parent == '/news/' -%}<li><a href="{{ '/news/' | relative_url }}">News</a></li>{%- endif -%}
136
+ {%- if page.parent == "/"-%}<li><a href="{{ page.url | relative_url }}" aria-current="page">{{page.title}}</a></li>{%- endif -%}
137
+ {%- if col.parent -%}
138
+ {%- capture page_url_without_index_html %}{{ page.url | remove: "/index.html" }}{% endcapture -%}
139
+ {%- assign splitted_url_parts = page_url_without_index_html | split: '/' -%}
140
+ {%- capture forLoopMaxInt %}{{ splitted_url_parts.size | minus:1 }}{% endcapture -%}
141
+ {%- for i in (1..forLoopMaxInt) -%}
142
+ {%- capture current_breadcrumb_url %}{{next_prepender}}/{{ splitted_url_parts[i] }}/{% endcapture -%}
143
+ {%- capture current_breadcrumb_md_url %}{{next_prepender}}/{{ splitted_url_parts[i] }}/{% endcapture -%}
144
+ {%- capture next_prepender %}{{next_prepender}}/{{ splitted_url_parts[i] }}{% endcapture -%}
145
+ {%- for breadcrumb_page in site.documents -%}
146
+ {%- if current_breadcrumb_url == breadcrumb_page.url -%}
51
147
  <li>
52
- <a{% if current_breadcrumb_url == page.url%} aria-current="page"{%endif%} href="{{ site.github.url }}{{current_breadcrumb_url}}">{% if breadcrumb_page.breadcrumb_title%}{{breadcrumb_page.breadcrumb_title}}{% else %}{{breadcrumb_page.title}}{% endif %}</a>
148
+ <a{% if current_breadcrumb_url == page.url%} aria-current="page"{%endif%} href="{{current_breadcrumb_url | relative_url}}">{% if breadcrumb_page.breadcrumb_title%}{{breadcrumb_page.breadcrumb_title}}{% else %}{% if breadcrumb_page.nav_title %}{% if breadcumb_page.nav_title == "Overview"%}{{breadcrumb_page.title}}{% else%}{{breadcrumb_page.nav_title}}{% endif %}{%-else-%}{{breadcrumb_page.title}}{% endif %}{% endif %}</a>
53
149
  </li>
54
- {% endif %}
55
- {% endfor %}
56
- {% endfor %}
150
+ {%- endif -%}
151
+ {%- endfor -%}
152
+ {%- endfor -%}
153
+ {%- endif -%}
57
154
  </ul>
58
155
  </nav>
59
- {% endunless %}
156
+ {%- endunless -%}