]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/add_aria_landmarks_to_make_ikiwiki_websites_more_accessible.mdwn
fix patch formatting
[ikiwiki.git] / doc / todo / add_aria_landmarks_to_make_ikiwiki_websites_more_accessible.mdwn
1 Here is a patch for page.tmpl to add these landmarks.
2
3 [[!format diff """
4 diff --git a/templates/page.tmpl b/templates/page.tmpl
5 index 5efad1a..cb76590 100644
6 --- a/templates/page.tmpl
7 +++ b/templates/page.tmpl
8 @@ -30,7 +30,7 @@
9  </head>
10  <body>
11  
12 -<div class="banner">
13 +<div class="banner" role="banner">
14    <a class="tails" href="<TMPL_VAR HOMEPAGEURL>">
15      <span class="acronym">Tails</span><br/>
16      <span class="slogan">The Amnesic Incognito Live System</span>
17 @@ -155,20 +155,20 @@
18  <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
19  
20  <TMPL_IF SIDEBAR>
21 -<TMPL_IF HTML5><aside class="sidebar"><TMPL_ELSE><div class="sidebar"></TMPL_IF>
22 +<TMPL_IF HTML5><aside class="sidebar" role="navigation"><TMPL_ELSE><div class="sidebar" role="navigation"></TMPL_IF>
23  <TMPL_VAR SIDEBAR>
24  <TMPL_IF HTML5></aside><TMPL_ELSE></div></TMPL_IF>
25  </TMPL_IF>
26  
27  <div id="pagebody">
28  
29 -<TMPL_IF HTML5><section id="content"><TMPL_ELSE><div id="content"></TMPL_IF>
30 +<TMPL_IF HTML5><section id="content" role="main"><TMPL_ELSE><div id="content" role="main"></TMPL_IF>
31  <TMPL_VAR CONTENT>
32  <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
33  
34  <TMPL_UNLESS DYNAMIC>
35  <TMPL_IF COMMENTS>
36 -<TMPL_IF HTML5><section id="comments"><TMPL_ELSE><div id="comments"></TMPL_IF>
37 +<TMPL_IF HTML5><section id="comments" role="complementary"><TMPL_ELSE><div id="comments" role="complementary"></TMPL_IF>
38  <TMPL_VAR COMMENTS>
39  <TMPL_IF ADDCOMMENTURL>
40  <div class="addcomment">
41 @@ -183,7 +183,7 @@
42  
43  </div>
44  
45 -<TMPL_IF HTML5><footer id="footer" class="pagefooter"><TMPL_ELSE><div id="footer" class="pagefooter"></TMPL_IF>
46 +<TMPL_IF HTML5><footer id="footer" class="pagefooter" role="contentinfo"><TMPL_ELSE><div id="footer" class="pagefooter" role="contentinfo"></TMPL_IF>
47  <TMPL_UNLESS DYNAMIC>
48  <TMPL_IF HTML5><nav id="pageinfo"><TMPL_ELSE><div id="pageinfo"></TMPL_IF>
49  
50 """]]