html: more titles tags in page

This commit is contained in:
Cyrille L 2022-11-24 14:51:49 +01:00
parent ecef8c1047
commit 8043053d74
1 changed files with 20 additions and 7 deletions

View File

@ -33,7 +33,10 @@ trans = [
[ 'Syndication de', 'Syndication of' ], # 7
[ 'Site officiel de %s'%Tyto, 'Official website of %s'%Tyto ], # 8
[ 'Écrit par', 'Written by' ], # 9
[ 'le ', 'on '] # 10
[ '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
) + \
' </h1>\n' + \
' <h2 id="site-about">%s</h2>\n'%domain.domain_about + \
' <p id="site-about"\n' + \
' title="%s %s %s %s">%s\n'%(
trans[11][fl],
domain.domain_title,
trans[12][fl],
domain.domain_url,
domain.domain_about
) + \
' </p>\n' + \
' </div>\n' + \
'</header>\n'
@ -159,13 +170,15 @@ def html_main_page(wip_html):
# Article (in section)
#--------------------------------------
articles = '<section id="page-wrapper">\n' + \
' <article id="article_%s" class="%s">\n'%(
' <article id="post-%s" class="%s">\n'%(
post_ID, domain.domain_css
) + \
' <div id="metas">\n' + \
' <p>\n' + \
' <span id="%s">%s %s</span>\n'%(
post_author, trans[9][fl], post_author
' <span id="%s"\n'%post_author + \
' title="%s %s %s">%s %s</span>\n'%(
post_author, trans[13][fl], post_title,
trans[9][fl], post_author
) + \
' <span id="sep">, %s</span>\n'%trans[10][fl] + \
' <span id="date">%s</span>\n'%post_date + \