This commit is contained in:
Cyrille L 2024-01-12 18:02:11 +01:00
parent 3046899ae9
commit f4468376d9
5 changed files with 10 additions and 7 deletions

View File

@ -8,6 +8,9 @@ Tyto - Littérateur
# CURRENTLY IN DEV (in devel branch) ! # CURRENTLY IN DEV (in devel branch) !
## [1.11.3]
- Additional HTML code for accessibility
## [1.11.2] ## [1.11.2]
- better HTML code for accessibility - better HTML code for accessibility

2
debian/control vendored
View File

@ -1,5 +1,5 @@
Package: tyto Package: tyto
Version: 1.11.2 Version: 1.11.3
Section: custom Section: custom
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# version: 1.11.2 # version: 1.11.3
# date: 2024-01-11 1704988389 # date: 2024-01-12 1705078779
# Tyto - Littérateur # Tyto - Littérateur
# Copyright (C) 2023 Cyrille Louarn <echolib+tyto@a-lec.org> # Copyright (C) 2023 Cyrille Louarn <echolib+tyto@a-lec.org>

View File

@ -281,7 +281,7 @@ def set_footer_raw(mod):
footer_menu = "<!-- Links from domain configuration [WEBSITE_FOOTER] -->" footer_menu = "<!-- Links from domain configuration [WEBSITE_FOOTER] -->"
footer_link = \ footer_link = \
'\n<li role="listitem" class="footer_item">' + \ '\n<li role="listitem" class="footer_item">' + \
'<a class="footer_item_link" href="%s" title="%s %s">%s</a>' + \ '<a role="link" class="footer_item_link" href="%s" title="%s %s">%s</a>' + \
'</li>' '</li>'
for key, value in domain.cf.items("WEBSITE_FOOTER"): for key, value in domain.cf.items("WEBSITE_FOOTER"):
@ -593,7 +593,7 @@ navbar_html = """
</nav> </nav>
""" """
navbar_link = '<li role="menuitem" class="menu_item">' + \ navbar_link = '<li role="menuitem" class="menu_item">' + \
'<a class="menu_link" href="%s" title="%s">%s</a>' + \ '<a role="link" class="menu_link" href="%s" title="%s">%s</a>' + \
'</li>' '</li>'
#---------# #---------#
@ -609,7 +609,7 @@ sidebar_html = """
</nav> </nav>
</aside> </aside>
""" """
sidebar_item = """<li class="sidebar_item"> sidebar_item = """<li role="listitem" class="sidebar_item">
<div class="sidebar_post_title"> <div class="sidebar_post_title">
<a role="link" class="sidebar_post_link" href="%s">%s</a> <a role="link" class="sidebar_post_link" href="%s">%s</a>
</div> </div>

View File

@ -181,7 +181,7 @@ template = """<!-- %s - %s (page generated by Tyto - Littérateur) -->
<header id="article_header"> <header id="article_header">
%s %s
<h1 role="heading" aria-level="1" id="article_title"> <h1 role="heading" aria-level="1" id="article_title">
<a id="article_title_link" href="%s" title="%s -- %s, %s">%s</a> <a role="link" id="article_title_link" href="%s" title="%s -- %s, %s">%s</a>
</h1> </h1>
%s %s
</header> </header>