diff --git a/CHANGELOG.md b/CHANGELOG.md index c023daa..f8f7497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ Tyto - Littérateur # CURRENTLY IN DEV (in devel branch) ! +## [1.11.2] +- better HTML code for accessibility + ## [1.11.1] - [help article]: added div box help - fix meta keywords, including domain tags in HTML pages diff --git a/debian/control b/debian/control index 3fbc523..e86479f 100644 --- a/debian/control +++ b/debian/control @@ -1,5 +1,5 @@ Package: tyto -Version: 1.11.1 +Version: 1.11.2 Section: custom Priority: optional Architecture: all diff --git a/src/usr/bin/tyto b/src/usr/bin/tyto index e3059b8..3665911 100755 --- a/src/usr/bin/tyto +++ b/src/usr/bin/tyto @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# version: 1.11.1 -# date: 2024-01-08 1704734310 +# version: 1.11.2 +# date: 2024-01-11 1704988389 # Tyto - Littérateur # Copyright (C) 2023 Cyrille Louarn diff --git a/src/var/lib/tyto/program/modules.py b/src/var/lib/tyto/program/modules.py index b28eb82..6551c73 100644 --- a/src/var/lib/tyto/program/modules.py +++ b/src/var/lib/tyto/program/modules.py @@ -280,11 +280,14 @@ def set_footer_raw(mod): # ---------------------------------- " footer_menu = "" footer_link = \ - '\n' for key, value in domain.cf.items("WEBSITE_FOOTER"): + if not value: + continue + try: tupvalues = ast.literal_eval(value) footer_menu = footer_menu + \ @@ -315,10 +318,11 @@ def set_footer_raw(mod): tyto_site_link = "https://tyto.echolib.re/" tyto_code_link = "https://forge.a-lec.org/echolib/tyto-litterateur" footer_tyto = \ - '%s '%( + '%s '%( langs.site.tyto_credit, tyto_site_link, langs.site.off_website) + \ 'Tyto - Littérateur' + \ - ' ['%tyto_code_link + \ + ' [' + \ '%s'%langs.site.source_code + \ ']' @@ -360,21 +364,21 @@ def set_footer_raw(mod): #----------------------------# def create_htmls(mod): html_file = ""%(mod, mod) - + if mod == "navbar": html_file = create_navbar_html(html_file) - + elif mod == "sidebar": html_file = create_sidebar_html(html_file) - + else: with open(files[mod]["wrk"], "r") as f: for line in f.read().rsplit("\n"): if not line or line.isspace() or line.lstrip().startswith("#"): continue - + html_file = "%s\n%s"%(html_file, line) - + tools.create_file(files[mod]["wip"], html_file) debug.out(250, mod, files[mod]["wip"], True, 0, False) @@ -565,7 +569,7 @@ metas_raw = """ # Header # #--------# header_raw = """ - +