diff website/www/_templates/layout.html @ 6774:e7b4ad2c57ac

landmarks, skiplink, remove bad attrs, autocomplete search layout.html: Add main and nav landmarks to layout templte. Add skiplink to get to main. Remove Description meta tag from layout template in favor of description metadata in individual files. Remove obsolete border attribute from sourceforge logo. Add autocomplete="on" attribute for search input box. doc/*.txt Remove language attribute from description meta tags. These changes also occur for other files not in this commit. Thse other files have changes to files for the 2.2.0 release not yet tobe committed.
author John Rouillard <rouilj@ieee.org>
date Tue, 12 Jul 2022 15:00:30 -0400
parents c574d888dd87
children c90104abe508
line wrap: on
line diff
--- a/website/www/_templates/layout.html	Tue Jul 12 14:16:58 2022 -0400
+++ b/website/www/_templates/layout.html	Tue Jul 12 15:00:30 2022 -0400
@@ -3,8 +3,6 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <meta name="Description"
-	  content="Documentation on the Roundup issue tracker, version {{ release|e }}.">
     {{ metatags }}
     {%- if builder != 'htmlhelp' %}
       {%- set titlesuffix = docstitle|e %}
@@ -65,12 +63,13 @@
 {%- block extrahead %} {% endblock %}
   </head>
   <body>
+    <div id="skiplink"><a href="#main">Skip to main content</a></div>
     <div class="header"><h1>Roundup</h1>
       {%- if pagename != "search" %}
         <div id="searchbox" style="display: none">
           <form class="search" action="{{ pathto('search') }}" method="get">
             <input type="text" aria-label="Enter search terms"
-		   name="q" size="18" />
+		   name="q" size="18" autocomplete="on" />
             <input type="submit" value="{{ _('Search') }}" />
             <input type="hidden" name="check_keywords" value="yes" />
             <input type="hidden" name="area" value="default" />
@@ -79,9 +78,11 @@
       {%- endif %}
     </div>
     <div class="navigation">
+      <nav>
       <div class="menu">
        {{ toctree() }}
       </div>
+      </nav>
     </div>
     <div class="content">
 	<div id="subnav">
@@ -96,7 +97,9 @@
         <a title="{{ _('Index') }}" href="{{ pathto('genindex') }}">
 	  Index</a>
 	</div>
+	<main id="main" tabindex="-1">
        {% block body %} {% endblock %}
+	</main>
     </div>
 {%- block footer %}
     <div class="footer">
@@ -114,7 +117,7 @@
       {%- if last_updated %}
         {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
       {%- endif %}
-      <span>Hosted by <a href="https://sourceforge.net"><img src="https://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a></span>
+      <span>Hosted by <a href="https://sourceforge.net"><img src="https://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></span>
       </div>
     </div>
 {%- endblock %}

Roundup Issue Tracker: http://roundup-tracker.org/