wai-website-theme 1.7 → 1.9.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/_data/navigation.yml +24 -1
  3. data/_includes/body-class.html +1 -1
  4. data/_includes/ednote.html +32 -0
  5. data/_includes/footer.html +28 -2
  6. data/_includes/icon.html +2 -2
  7. data/_includes/link.html +1 -1
  8. data/_includes/prevnext-navigation.html +0 -8
  9. data/_includes/secondarynav.html +13 -83
  10. data/_includes/subpages.html +35 -0
  11. data/_layouts/default.html +4 -4
  12. data/_layouts/home.html +1 -1
  13. data/_layouts/languagefile.js +7 -0
  14. data/_layouts/news.html +2 -2
  15. data/_layouts/policy.html +2 -2
  16. data/_layouts/sidenav.html +2 -2
  17. data/_layouts/sidenavsidebar.html +2 -2
  18. data/assets/ableplayer/build/ableplayer.dist.js +419 -220
  19. data/assets/ableplayer/build/ableplayer.js +391 -192
  20. data/assets/ableplayer/build/ableplayer.min.js +2 -2
  21. data/assets/ableplayer/button-icons/black/captions.png +0 -0
  22. data/assets/ableplayer/button-icons/black/chapters.png +0 -0
  23. data/assets/ableplayer/button-icons/black/close.png +0 -0
  24. data/assets/ableplayer/button-icons/black/descriptions.png +0 -0
  25. data/assets/ableplayer/button-icons/black/ellipsis.png +0 -0
  26. data/assets/ableplayer/button-icons/black/faster.png +0 -0
  27. data/assets/ableplayer/button-icons/black/forward.png +0 -0
  28. data/assets/ableplayer/button-icons/black/fullscreen-collapse.png +0 -0
  29. data/assets/ableplayer/button-icons/black/fullscreen-expand.png +0 -0
  30. data/assets/ableplayer/button-icons/black/help.png +0 -0
  31. data/assets/ableplayer/button-icons/black/next.png +0 -0
  32. data/assets/ableplayer/button-icons/black/pause.png +0 -0
  33. data/assets/ableplayer/button-icons/black/pipe.png +0 -0
  34. data/assets/ableplayer/button-icons/black/play.png +0 -0
  35. data/assets/ableplayer/button-icons/black/preferences.png +0 -0
  36. data/assets/ableplayer/button-icons/black/previous.png +0 -0
  37. data/assets/ableplayer/button-icons/black/restart.png +0 -0
  38. data/assets/ableplayer/button-icons/black/rewind.png +0 -0
  39. data/assets/ableplayer/button-icons/black/sign.png +0 -0
  40. data/assets/ableplayer/button-icons/black/slower.png +0 -0
  41. data/assets/ableplayer/button-icons/black/stop.png +0 -0
  42. data/assets/ableplayer/button-icons/black/transcript.png +0 -0
  43. data/assets/ableplayer/button-icons/black/volume-loud.png +0 -0
  44. data/assets/ableplayer/button-icons/black/volume-medium.png +0 -0
  45. data/assets/ableplayer/button-icons/black/volume-mute.png +0 -0
  46. data/assets/ableplayer/button-icons/black/volume-soft.png +0 -0
  47. data/assets/ableplayer/button-icons/white/captions.png +0 -0
  48. data/assets/ableplayer/button-icons/white/chapters.png +0 -0
  49. data/assets/ableplayer/button-icons/white/close.png +0 -0
  50. data/assets/ableplayer/button-icons/white/descriptions.png +0 -0
  51. data/assets/ableplayer/button-icons/white/ellipsis.png +0 -0
  52. data/assets/ableplayer/button-icons/white/faster.png +0 -0
  53. data/assets/ableplayer/button-icons/white/forward.png +0 -0
  54. data/assets/ableplayer/button-icons/white/fullscreen-collapse.png +0 -0
  55. data/assets/ableplayer/button-icons/white/fullscreen-expand.png +0 -0
  56. data/assets/ableplayer/button-icons/white/help.png +0 -0
  57. data/assets/ableplayer/button-icons/white/next.png +0 -0
  58. data/assets/ableplayer/button-icons/white/pause.png +0 -0
  59. data/assets/ableplayer/button-icons/white/pipe.png +0 -0
  60. data/assets/ableplayer/button-icons/white/play.png +0 -0
  61. data/assets/ableplayer/button-icons/white/preferences.png +0 -0
  62. data/assets/ableplayer/button-icons/white/previous.png +0 -0
  63. data/assets/ableplayer/button-icons/white/rabbit.png +0 -0
  64. data/assets/ableplayer/button-icons/white/restart.png +0 -0
  65. data/assets/ableplayer/button-icons/white/rewind.png +0 -0
  66. data/assets/ableplayer/button-icons/white/sign.png +0 -0
  67. data/assets/ableplayer/button-icons/white/slower.png +0 -0
  68. data/assets/ableplayer/button-icons/white/stop.png +0 -0
  69. data/assets/ableplayer/button-icons/white/transcript.png +0 -0
  70. data/assets/ableplayer/button-icons/white/turtle.png +0 -0
  71. data/assets/ableplayer/button-icons/white/volume-loud.png +0 -0
  72. data/assets/ableplayer/button-icons/white/volume-medium.png +0 -0
  73. data/assets/ableplayer/button-icons/white/volume-mute.png +0 -0
  74. data/assets/ableplayer/button-icons/white/volume-soft.png +0 -0
  75. data/assets/ableplayer/images/wingrip.png +0 -0
  76. data/assets/css/style.css +1 -1
  77. data/assets/css/style.css.map +1 -1
  78. data/assets/fonts/notosansmono/notosansmono-bold.woff +0 -0
  79. data/assets/fonts/notosansmono/notosansmono-bold.woff2 +0 -0
  80. data/assets/fonts/notosansmono/notosansmono-regular.woff +0 -0
  81. data/assets/fonts/notosansmono/notosansmono-regular.woff2 +0 -0
  82. data/assets/images/icons.svg +3 -0
  83. data/assets/images/inline.png +0 -0
  84. data/assets/images/social-sharing-default.jpg +0 -0
  85. data/assets/scripts/lang/ar.js +4 -0
  86. data/assets/scripts/lang/de.js +4 -0
  87. data/assets/scripts/lang/el.js +4 -0
  88. data/assets/scripts/lang/es.js +4 -0
  89. data/assets/scripts/lang/fr.js +4 -0
  90. data/assets/scripts/lang/ja.js +4 -0
  91. data/assets/scripts/lang/ko.js +4 -0
  92. data/assets/scripts/lang/nl.js +4 -0
  93. data/assets/scripts/lang/pt-BR.js +4 -0
  94. data/assets/scripts/lang/ru.js +4 -0
  95. data/assets/scripts/lang/zh-hans.js +4 -0
  96. data/assets/scripts/main.js +20 -7
  97. metadata +23 -9
  98. data/assets/fonts/notosansmono/notosansmono-semicondensed.woff +0 -0
  99. data/assets/fonts/notosansmono/notosansmono-semicondensed.woff2 +0 -0
  100. data/assets/fonts/notosansmono/notosansmono-semicondensedbold.woff +0 -0
  101. data/assets/fonts/notosansmono/notosansmono-semicondensedbold.woff2 +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5ff63f525b7bdbfaa526b5948a80d9d15cc614ef5d7755d86452872de8fba92
4
- data.tar.gz: b8ab68ccfe3ca812cf2cf3129d59d812911d226a9087e9097985d5891e955d10
3
+ metadata.gz: ef42242775fe2daa5d56c1b68d38adf6307234ef66ed95bd578ef24e09a5a6c4
4
+ data.tar.gz: b8a9d36dd55e72b4a996902c4a4d85b0b75e006eb85877cc326096fc7e198796
5
5
  SHA512:
6
- metadata.gz: f963eeee23e3c8e16afb9568555345d7c29ce2067c25e1e0c22129d6bb436c05cf831a8fdcf62b1c5d2a24f47d77d9855d0f3c297c308da9b5c4e85757a46c54
7
- data.tar.gz: a195c9358385c40ce63f4a0292ded5fa527a710f38beceb3ab601004601437dc8b1c82602b273bdbe6954a2a34dc872bb65e528d161263588b7a47afeecb3df9
6
+ metadata.gz: d4ab5ccb145515efd8a7b7b5b2fb8ced616570b5cebfca7b584cf246cc3a895afca8b971afc4eb9dc1ef1588ff9a6ca993ab266fbeac9437e0ec7543ec2d0ffa
7
+ data.tar.gz: a8abd848c209eb1e9bc2d2387b8b0f457f3d35f0d9cc85b3fb3d546b8d5c1c48b309fbaf533b5f1e3a5118e7c156dba154ebcc6516917d8ec97e8b30744f8498
@@ -3,15 +3,29 @@
3
3
  pages:
4
4
  - name: Overview
5
5
  url: "/overview/"
6
+ - name: Technical Information
7
+ url: "/technical/"
8
+ - name: Files in Repositories
9
+ url: "/technical/files/"
10
+ - name: Publication of the WAI Site
11
+ url: "/technical/publication/"
12
+ - name: Creating a New Resource
13
+ url: "/technical/new-resource/"
6
14
  - name:
7
- en: 'Writing Documents'
15
+ en: 'Create and Edit Documents'
8
16
  pages:
9
17
  - name: Overview
10
18
  url: "/writing/"
19
+ - name: Frontmatter
20
+ url: "/writing/frontmatter/"
11
21
  - name: Markdown
12
22
  url: "/writing/markdown/"
13
23
  - name: Custom Markdown Extensions
14
24
  url: "/writing/wai-markdown/"
25
+ - name: Using HTML
26
+ url: "/writing/html/"
27
+ - name: Images
28
+ url: "/writing/images/"
15
29
  - name:
16
30
  en: 'Design Components'
17
31
  pages:
@@ -62,6 +76,8 @@
62
76
  url: "/components/figure/"
63
77
  - name: "Footer (Page & Site)"
64
78
  url: "/components/footer/"
79
+ - name: "Footnotes"
80
+ url: "/components/footnotes/"
65
81
  - name: "Form"
66
82
  url: "/components/form/elements/"
67
83
  pages:
@@ -71,6 +87,8 @@
71
87
  url: "/components/form/search/"
72
88
  - name: "Headings"
73
89
  url: "/components/headings/"
90
+ - name: Icons
91
+ url: "/components/icons/"
74
92
  - name: Images
75
93
  url: "/components/images/"
76
94
  - name: "Lists"
@@ -79,6 +97,11 @@
79
97
  url: "/components/publication-warning/"
80
98
  - name: "Tables"
81
99
  url: "/components/tables/"
100
+ - name: "Teasers"
101
+ url: "/components/teasers/"
102
+ pages:
103
+ - name: "Making the Web Accessible"
104
+ url: "/components/teasers/mwa/"
82
105
  - name: "Video Links"
83
106
  url: "/components/video-links/"
84
107
  - name: "Video Player"
@@ -1 +1 @@
1
- {% if include.collection %}resource-{{include.collection | slugify}}{% endif %}{%if include.doc-note-type %} doc-note doc-{{include.doc-note-type}}{% endif %}
1
+ {% if include.collection %}resource-{{include.collection | slugify}}{% endif %}{%if include.doc-note-type %} doc-note doc-{{include.doc-note-type}}{% endif %}{%if include.pageclass %} {{include.pageclass}}{% endif %}
@@ -0,0 +1,32 @@
1
+ {%- unless site.published -%}
2
+ {%- capture text -%}
3
+ {%- if include.issue -%}
4
+ <a href="https://github.com/{% if include.repo %}{{include.repo}}{% else %}{{page.github.repository}}{% endif %}/issues/{{include.issue}}">Issue #{{include.issue}}</a> — {{ include.note }}
5
+ {%- else -%}
6
+ {%- if include.pr -%}
7
+ <a href="https://github.com/{% if include.repo %}{{include.repo}}{% else %}{{page.github.repository}}{% endif %}/pull/{{include.pr}}">Pull Request #{{include.pr}}</a> — {{ include.note }}
8
+ {%- else -%}
9
+ {{ include.note }}
10
+ {%- endif -%}
11
+ {%- endif -%}
12
+ {%- endcapture -%}
13
+ {%- assign statustext = "Editor’s Note" -%}
14
+ {%- assign statuscolor = "--grey" -%}
15
+ {%- assign textcolor = "--pure-white" -%}
16
+ {%- if include.status == "open" -%}
17
+ {%- assign statustext = "Open Issue" -%}
18
+ {%- assign statuscolor = "--faded-red" -%}
19
+ {%- assign textcolor = "--pure-white" -%}
20
+ {%- endif -%}
21
+ {%- if include.status == "proposed" -%}
22
+ {%- assign statustext = "Proposed Change" -%}
23
+ {%- assign statuscolor = "--gold" -%}
24
+ {%- assign textcolor = "--off-black" -%}
25
+ {%- endif -%}
26
+ {%- if include.status == "accepted" -%}
27
+ {%- assign statustext = "Accepted Change" -%}
28
+ {%- assign statuscolor = "--ocean" -%}
29
+ {%- assign textcolor = "--off-black" -%}
30
+ {%- endif -%}
31
+ <span style="border: 5px solid var({{ statuscolor }});"><strong style="background-color: var({{ statuscolor }});border-right: 5px solid var({{ statuscolor }}); color: var({{ textcolor }});">{{ statustext }}</strong> {{ text }}</span><br>
32
+ {%- endunless -%}
@@ -12,17 +12,32 @@
12
12
  {%- else -%}
13
13
  {%- assign changelog = "" -%}
14
14
  {%- endif -%}
15
+ {%- if page.acknowledgements -%}
16
+ {%- assign acknowledgementspage=site.documents | where:"ref", page.acknowledgements | first -%}
17
+ {%- unless acknowledgementspage.ref -%}
18
+ {%- assign acknowledgementspage=site.pages | where:"ref", page.acknowledgements | first -%}
19
+ {%- endunless -%}
20
+ {% assign acknowledgementspageurl = acknowledgementspage.url | relative_url %}
21
+ {%- capture acknowledgementstext -%}
22
+ {%- include_cached t.html t="Acknowledgements" lang=page.lang -%}
23
+ {%- endcapture -%}
24
+ {%- assign acknowledgements = '<a href="' | append: acknowledgementspageurl | append: '">' | append: acknowledgementstext | append: '</a>' -%}
25
+ {%- else -%}
26
+ {%- assign acknowledgements = "" -%}
27
+ {%- endif -%}
15
28
  {% if col.footer %}
16
29
  <footer id="wai-page-footer" class="page-footer default-grid" aria-label="Page">
17
30
  <div class="inner">
18
- {{col.footer | replace: "CHANGELOG", changelog }}
31
+ {{ col.footer | replace: "CHANGELOG", changelog | replace: "ACKNOWLEDGEMENTS", acknowledgements }}
32
+ {%- if page.license == 'creative-commons' -%}<p>{% include_cached icon.html name="creative-commons" %} This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</p>{%- endif -%}
19
33
  </div>
20
34
  </footer>
21
35
  {% else %}
22
36
  {% if page.footer %}
23
37
  <footer id="wai-site-footer" class="page-footer default-grid" aria-label="Page">
24
38
  <div class="inner">
25
- {{page.footer | replace: "CHANGELOG", changelog}}
39
+ {{ page.footer | replace: "CHANGELOG", changelog | replace: "ACKNOWLEDGEMENTS", acknowledgements }}
40
+ {%- if page.license == 'creative-commons' -%}<p>{% include_cached icon.html name="creative-commons" %} This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</p>{%- endif -%}
26
41
  </div>
27
42
  </footer>
28
43
  {% endif %}
@@ -71,6 +86,17 @@
71
86
  <script>
72
87
  svg4everybody();
73
88
  </script>
89
+ {%- assign defaultlang = false -%}
90
+ {%- if include.lang == "en"-%}{%- assign defaultlang = true -%}{%- endif -%}
91
+ {%- if include.lang == ""-%}{%- assign defaultlang = true -%}{%- endif -%}
92
+ {%- if include.lang == "en_US"-%}{%- assign defaultlang = true -%}{%- endif -%}
93
+ {%- if defaultlang == true -%}
94
+ <script>
95
+ var translationStrings = {};
96
+ </script>
97
+ {% else %}
98
+ <script src="{{ '/assets/scripts/lang/' | append: page.lang | append: '.js' | append: timestamp | relative_url }}"></script>
99
+ {%- endif -%}
74
100
  <!-- Matomo -->
75
101
  <script>
76
102
  var _paq = _paq || [];
@@ -1,6 +1,6 @@
1
1
  {%- if include.name %}{%assign name = include.name%}{% else %}{% assign name="default" %}{% endif -%}
2
2
  {%- if include.label -%}
3
- <svg aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
3
+ <svg focusable="false" aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
4
4
  {%- else -%}
5
- <svg aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
5
+ <svg focusable="false" aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
6
6
  {%- endif -%}
@@ -71,7 +71,7 @@
71
71
  {%- if protocol[0] == "" -%}
72
72
  {%- assign linkurl = 'https://www.w3.org/WAI' | append: include.to -%}
73
73
  {%- else -%}
74
- {%- assign linkurl = include.to -%}
74
+ {%- assign linkurl = include.to | relative_url -%}
75
75
  {%- endif -%}
76
76
 
77
77
  {%- if link_page.url -%}
@@ -19,13 +19,6 @@ navigation:
19
19
  {%- assign next=site.pages | where:"ref", page.navigation.next | where: "lang", lang | first -%}
20
20
  {% endunless %}
21
21
 
22
- {%- assign col = site.collections | where: "label", page.collection | first -%}
23
- {%- unless col.prevnext == false -%}
24
- {%- if page.group -%}
25
- {%- assign docs = col.docs | where: "group", page.group | where: "lang", lang -%}
26
- {%- else -%}
27
- {%- assign docs = col.docs | where: "lang", lang -%}
28
- {%- endif -%}
29
22
  <nav class="pager" aria-label="Previous/Next Page" style="clear: both;">
30
23
  <ul>
31
24
  {%- if page.navigation.previous -%}
@@ -52,5 +45,4 @@ navigation:
52
45
  </ul>
53
46
  {%- endif -%}
54
47
  </nav>
55
- {%- endunless -%}
56
48
  {%- endif -%}
@@ -11,88 +11,18 @@
11
11
  {%- assign searchurl = page.url -%}
12
12
  {%- endif -%}
13
13
  {%- endif -%}
14
- {%- if col.navigation -%}
15
- {%- assign currentsubnav = col.navigation -%}
16
- {%- else -%}
17
14
  {%- for item in site.data.navigation -%}
18
- {%- for i in item.pages -%}
19
- {%- if i.url == searchurl -%}
20
- {%- assign currentsubnav = item -%}
21
- {%- else -%}
22
- {%- for j in i.pages -%}
23
- {%- if j.url == searchurl -%}
24
- {%- assign currentsubnav = item -%}
25
- {%- else -%}
26
- {%- for k in j.pages -%}
27
- {%- if k.url == searchurl -%}
28
- {%- assign currentsubnav = item -%}
29
- {%- endif -%}
30
- {%- endfor -%}
31
- {%- endif -%}
32
- {%- endfor -%}
33
- {%- endif -%}
34
- {%- endfor -%}
35
- {%- endfor -%}
36
- {%- endif -%}
37
- <div class="sidenav">
38
- {%- for i in currentsubnav.pages -%}
39
- {%- if forloop.first -%}
40
- <nav class="sn-contents" aria-label="Secondary">
41
- <div class="sidenav--head"><div class="sidenav--head-title"><div class="sidenav--head-subsection">{% include_cached inpl.html lang=page.lang a=currentsubnav.name %}</div></div></div>
42
- <ul class="sidenav--list">
43
- {% endif %}
44
- {%- assign insub = false -%}
45
- {%- assign insubsub = false -%}
46
- {%- capture submenu -%}
47
- {%- for j in i.pages -%}
48
- {%- capture subsubmenu -%}
49
- {%- for k in j.pages -%}
50
- {%- if forloop.first %}<ul>{% endif -%}
51
- {%- if k.url == searchurl -%}
52
- {% assign insub = true %}
53
- {% assign insubsub = true %}
54
- {% include menuitem.html name=k.name url=k.url hide=k.hide insub=false current=true %}
55
- {%- else -%}
56
- {% include menuitem.html name=k.name url=k.url hide=k.hide insub=false current=false %}
57
- {%- endif -%}
58
- {%- if forloop.last %}</ul>{% endif -%}
59
- {%- endfor -%}
60
- {%- endcapture -%}
61
- {%- if forloop.first %}<ul>{% endif -%}
62
- {%- if j.url == searchurl -%}
63
- {% assign insub = true %}
64
- {% include menuitem.html name=j.name url=j.url hide=j.hide insub=insubsub current=true submenu=subsubmenu %}
65
- {%- else -%}
66
- {% include menuitem.html name=j.name url=j.url hide=j.hide insub=insubsub current=false submenu=subsubmenu %}
67
- {%- endif -%}
68
- {%- if forloop.last %}</ul>{% endif -%}
69
- {%- endfor -%}
70
- {%- endcapture -%}
71
- {%- if i.url == searchurl -%}
72
- {% include menuitem.html name=i.name url=i.url hide=i.hide insub=insub current=true submenu=submenu %}
73
- {%- else -%}
74
- {% include menuitem.html name=i.name url=i.url hide=i.hide insub=insub current=false submenu=submenu %}
75
- {%- endif -%}
76
- {%- if forloop.last %}</ul></nav>{% endif -%}
77
- {%- endfor -%}
78
- {% if page.ref %}
79
- {%- for p in translations %}
80
- {%-if forloop.first -%}
81
- <nav class="sidenav-languages" aria-labelledby="languagehead">
82
- <header id="languagehead">{% include t.html t="Languages/Translations" %}</header>
83
- <ul class="langlist">
84
- <li style="margin-bottom: 2px;">{% if 'en' == page.lang %}<strong style="text-transform: capitalize;">{{ site.data.lang['en'].nativeName }} (original)</strong>{% else %}<a href="{{ enpage.url | relative_url }}" lang="en" dir="auto" translate="no">{{ site.data.lang['en'].nativeName }} (original)</a>{% endif %}</li>
85
- {%- endif -%}
86
- <li style="margin-bottom: 2px;">{% if p.lang == page.lang %}<strong style="text-transform: capitalize;">{{ site.data.lang[p.lang].nativeName }}</strong>{% else %}<a style="text-transform: capitalize;" href="{{ p.url | relative_url }}" dir="auto" translate="no" lang="{{ p.lang }}">{{ site.data.lang[p.lang].nativeName }}</a>{% endif %}</li>
87
- {%- if forloop.last -%}
88
- </ul>
89
- {%- unless page.lang == "en" -%}
90
- <p><a href="{{"/translations/#" | append: page.lang | relative_url}}">{% include t.html t="Other Resources in" %} {{ site.data.lang[page.lang].nativeName }}</a></p>
91
- {% endunless %}
92
- <p><a href="{{"/translations/" | relative_url}}">{% include t.html t="All&nbsp;Translations" %}</a></p>
93
- <p><a href="{{"/about/translating/" | relative_url}}">{% include t.html t="Translating WAI Resources" %}</a></p>
15
+ {% assign seen_current = false %}
16
+ {% assign is_in_here = false %}
17
+ {% capture menu %}
18
+ {% include subpages.html name=false pages=item.pages hide=item.hide %}
19
+ {% endcapture %}
20
+ {% if is_in_here == true %}
21
+ <div class="sidenav">
22
+ <nav class="sn-contents" aria-label="Secondary">
23
+ <div class="sidenav--head"><div class="sidenav--head-title"><div class="sidenav--head-subsection">{% include_cached inpl.html lang=page.lang a=item.name %}</div></div></div>
24
+ {{menu}}
94
25
  </nav>
95
- {%- endif -%}
96
- {% endfor -%}
97
- {% endif %}
98
- </div>
26
+ </div>
27
+ {% endif %}
28
+ {%- endfor -%}
@@ -0,0 +1,35 @@
1
+ {% if include.url == searchurl %}
2
+ {% assign seen_current = true %}
3
+ {% assign is_in_here = true %}
4
+ {% capture subpages %}
5
+ {% for page in include.pages %}
6
+ {% if forloop.first %}<ul>{% endif %}
7
+ {% include subpages.html name=page.name url=page.url pages=page.pages hide=page.hide subpageofcurrent=true %}
8
+ {% if forloop.last %}</ul>{% endif %}
9
+ {% endfor %}
10
+ {% endcapture %}
11
+ {% unless include.name == false%}<li>{% include_cached link.html to=include.url text=include.name class="page-link" usenavtitle=true lang=page.lang hidelangnotice=true aria-current="page" %} {% endunless %}{{subpages}}{% unless include.name == false%}</li>{% endunless %}
12
+ {% else %}
13
+ {% unless include.hide %}
14
+ {% capture subpages %}
15
+ {% for page in include.pages %}
16
+ {% if forloop.first %}<ul{% if include.name == false%} class="sidenav--list"{% endif %}>{% endif %}
17
+ {% include subpages.html name=page.name url=page.url pages=page.pages hide=page.hide %}
18
+ {% if forloop.last %}</ul>{% endif %}
19
+ {% endfor %}
20
+ {% endcapture %}
21
+ {% if include.name == false %}
22
+ {{subpages}}
23
+ {% else %}
24
+ {% if is_in_here == true %}
25
+ {% if include.subpageofcurrent == true %}
26
+ <li>{% include_cached link.html to=include.url text=include.name class="page-link" usenavtitle=true lang=page.lang hidelangnotice=true subpageofcurrent=include.subpageofcurrent %} {{subpages}}</li>
27
+ {% else %}
28
+ <li>{% include_cached link.html to=include.url text=include.name class="page-link" usenavtitle=true lang=page.lang hidelangnotice=true aria-current="location" subpageofcurrent=include.subpageofcurrent %} {{subpages}}</li>
29
+ {% endif %}
30
+ {% else %}
31
+ <li>{% include_cached link.html to=include.url text=include.name class="page-link" usenavtitle=true lang=page.lang hidelangnotice=true subpageofcurrent=include.subpageofcurrent %}{{subpages}}</li>
32
+ {% endif %}
33
+ {% endif %}
34
+ {% endunless %}
35
+ {% endif %}
@@ -11,7 +11,7 @@
11
11
  {%- endunless -%}
12
12
  {%- endif -%}
13
13
  {%- assign englishpageurl = enpage.url %}
14
- {% assign translations=site.documents | where:"ref", page.ref | where_exp:"item", "item.lang != 'en'" | sort: 'lang' %}
14
+ {%- assign translations=site.documents | where:"ref", page.ref | where_exp:"item", "item.lang != 'en'" | sort: 'lang' -%}
15
15
  {%- unless translations[0].ref -%}
16
16
  {% assign translations=site.pages | where:"ref", page.ref | where_exp:"item", "item.lang != 'en'" | sort: 'lang' %}
17
17
  {%- endunless -%}
@@ -36,7 +36,7 @@
36
36
  <meta name="twitter:image" property="og:image" content="{{ twimage | relative_url | prepend: site.url }}">
37
37
  {%- endunless -%}
38
38
  {% include_cached head.html type="end" %}
39
- <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}">
39
+ <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type pageclass=page.class%}"{%if page.footnotestitle %} data-footnotestitle="{{page.footnotestitle}}"{% endif %}>
40
40
  {% include header.html translations=translations %}
41
41
  <div class="default-grid with-gap{% unless page.noleftcol %} leftcol{% endunless %}">
42
42
 
@@ -62,7 +62,7 @@
62
62
 
63
63
  <main id="main"{% if page.lang %} lang="{{page.lang}}"{% endif %}>
64
64
  <header{%- if page.resource.ref %}{%- unless page.ref == page.resource.ref %} class="in-resource"{%- endunless -%}{%- endif -%}>
65
- <h1>{% if page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{page.title_icon | relative_url}}"></use></svg> {% endif %}{% if page.title_html %}{{ page.title_html }}{% else %}{{ page.title }}{% endif %}</h1>
65
+ <h1>{% if page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{page.title_icon | relative_url}}"></use></svg> {% endif %}{% if page.title_image %}<img src="{{page.title_image | relative_url }}" alt="" class="title-image right" style="height: 2em;"> {% endif %}{% if page.title_html %}{{ page.title_html }}{% else %}{{ page.title }}{% endif %}</h1>
66
66
  {%- if page.resource.ref -%}{%- unless page.ref == page.resource.ref -%}
67
67
  <p>{% include t.html t="in" %} {% include link.html to=page.resource.ref %}</p>
68
68
  {%- endunless -%}{%- endif -%}
@@ -92,7 +92,7 @@
92
92
  </main>
93
93
  </div>
94
94
 
95
- {% include footer.html %}
95
+ {% include footer.html lang=pagelang %}
96
96
 
97
97
  </body>
98
98
  </html>
@@ -45,7 +45,7 @@
45
45
  {% include_cached backtotop.html lang=page.lang %}
46
46
  </main>
47
47
 
48
- {% include footer.html %}
48
+ {% include footer.html lang=pagelang %}
49
49
 
50
50
  </body>
51
51
  </html>
@@ -0,0 +1,7 @@
1
+ var translationStrings = {
2
+ {%- for t in site.data.translations -%}
3
+ {%- if t.javascript == true -%}
4
+ "{{t.en}}": "{{t[page.language]}}",
5
+ {%- endif -%}
6
+ {%- endfor -%}
7
+ };
@@ -35,7 +35,7 @@
35
35
  <meta name="twitter:image" property="og:image" content="{{ twimage | relative_url | prepend: site.url }}">
36
36
  {%- endunless -%}
37
37
  {% include_cached head.html type="end" %}
38
- <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}">
38
+ <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}"{%if page.footnotestitle %} data-footnotestitle="{{page.footnotestitle}}"{% endif %}>
39
39
  {% include header.html translations=translations %}
40
40
 
41
41
  <main id="main">
@@ -60,7 +60,7 @@
60
60
  {% include_cached backtotop.html lang=page.lang %}
61
61
  </main>
62
62
 
63
- {% include footer.html %}
63
+ {% include footer.html lang=pagelang %}
64
64
 
65
65
  </body>
66
66
  </html>
@@ -35,7 +35,7 @@
35
35
  <meta name="twitter:image" property="og:image" content="{{ twimage | relative_url | prepend: site.url }}">
36
36
  {%- endunless -%}
37
37
  {% include_cached head.html type="end" %}
38
- <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}">
38
+ <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}"{%if page.footnotestitle %} data-footnotestitle="{{page.footnotestitle}}"{% endif %}>
39
39
  {% include header.html translations=translations %}
40
40
 
41
41
  <div class="default-grid with-gap leftcol contentarea">
@@ -107,7 +107,7 @@
107
107
 
108
108
  </div>
109
109
 
110
- {% include footer.html %}
110
+ {% include footer.html lang=pagelang %}
111
111
  <style>@import url('{{"/policies/css/policies.css" | relative_url }}');</style>
112
112
  </body>
113
113
  </html>
@@ -35,7 +35,7 @@
35
35
  <meta name="twitter:image" property="og:image" content="{{ twimage | relative_url | prepend: site.url }}">
36
36
  {%- endunless -%}
37
37
  {% include_cached head.html type="end" %}
38
- <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}">
38
+ <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}"{%if page.footnotestitle %} data-footnotestitle="{{page.footnotestitle}}"{% endif %}>
39
39
  {% include header.html translations=translations %}
40
40
 
41
41
  <div class="default-grid with-gap leftcol">
@@ -68,7 +68,7 @@
68
68
  </main>
69
69
  </div>
70
70
 
71
- {% include footer.html %}
71
+ {% include footer.html lang=pagelang %}
72
72
 
73
73
  </body>
74
74
  </html>