From 8043053d74e43c0800ba83d6f29dc752348c6748 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Thu, 24 Nov 2022 14:51:49 +0100 Subject: [PATCH] html: more titles tags in page --- src/var/lib/tyto/program/html.py | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 40e98d4..fe05a27 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -32,8 +32,11 @@ trans = [ [ 'Site web généré par %s'%Tyto, 'Website generated by %s'%Tyto ], # 6 [ 'Syndication de', 'Syndication of' ], # 7 [ 'Site officiel de %s'%Tyto, 'Official website of %s'%Tyto ], # 8 - [ 'Écrit par', 'Written by' ], # 9 - [ 'le ', 'on '] # 10 + [ 'Écrit par', 'Written by' ], # 9 + [ 'le ', 'on '], # 10 + [ 'Description de', 'Description of '], # 11 + [ 'sur', 'on'], # 12 + [ 'est l\'auteur de l\'article :', 'is the author of post:'] # 13 ] #=======================================# @@ -151,7 +154,15 @@ def html_main_page(wip_html): domain.domain_title ) + \ ' \n' + \ - '

%s

\n'%domain.domain_about + \ + '

%s\n'%( + trans[11][fl], + domain.domain_title, + trans[12][fl], + domain.domain_url, + domain.domain_about + ) + \ + '

\n' + \ ' \n' + \ '\n' @@ -159,13 +170,15 @@ def html_main_page(wip_html): # Article (in section) #-------------------------------------- articles = '
\n' + \ - '
\n'%( + '
\n'%( post_ID, domain.domain_css - ) + \ + ) + \ '
\n' + \ '

\n' + \ - ' %s %s\n'%( - post_author, trans[9][fl], post_author + ' %s %s\n'%( + post_author, trans[13][fl], post_title, + trans[9][fl], post_author ) + \ ' , %s\n'%trans[10][fl] + \ ' %s\n'%post_date + \