diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index bb82f53..74b6bfe 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -19,15 +19,19 @@ import re, os import check, log, domain +Tyto = 'Tyto - Littérateur' +tytogen = 'https://git.a-lec.org/echolib/tyto-litterateur' +tytourl = 'https://tyto.echolib.re' trans = [ - [ 'Licence', 'License' ], # 0 - [ 'Générateur', 'Generator' ], # 1 - [ 'À propos de', 'About' ], # 2 - [ 'Envoyer un courriel à', 'Send a mail to' ], # 3 - [ 'Détails de la licence', 'License\'s details'], # 4 - [ 'Courriel', 'Mail' ], # 5 - [ 'Site web généré par', 'Website generated by'], # 6 - [ 'Syndication de', 'Syndication of' ] # 7 + [ 'Licence', 'License' ], # 0 + [ 'Générateur', 'Generator' ], # 1 + [ 'À propos de', 'About' ], # 2 + [ 'Envoyer un courriel à', 'Send a mail to' ], # 3 + [ 'Détails de la licence', 'License\'s details'], # 4 + [ 'Courriel', 'Mail' ], # 5 + [ '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 ] #=======================================# @@ -71,7 +75,6 @@ def html_main_page(wip_html): # Check here for template files files_uri = ( - '%s%s'%(domain.srv_wip, f_rss[1:len(f_rss)]), '%s%s'%(domain.srv_wip, icon[1:len(icon)]), '%s%s'%(domain.srv_wip, f_css[1:len(f_css)]), '%s%s'%(domain.srv_wip, logo[1:len(logo)]) @@ -100,7 +103,7 @@ def html_main_page(wip_html): '\n'%domain.domain_lang + \ '\n'%domain.domain_mail + \ '\n'%domain.domain_license + \ - '\n' + \ + '\n'%Tyto + \ '\n'%title + \ '\n'%post_author + \ '\n'%post_about + \ @@ -139,8 +142,10 @@ def html_main_page(wip_html): '

%s

\n'%domain.domain_about + \ ' \n' + \ '\n' - + + # Article (in section, including aside) + #-------------------------------------- articles = '
\n' + \ '
\n'%( post_ID, domain.domain_css @@ -167,10 +172,10 @@ def html_main_page(wip_html): ' \n' + \ ' \n' + \ '' - + + # Footer, and of page #-------------------- - tytogen = 'https://git.a-lec.org/echolib/tyto-litterateur' footers = '' - + + # Create file if not exists + #-------------------------- files_tpl = [ [ '%smetas.html'%domain.srv_wip_template, metas ], [ '%sheader.html'%domain.srv_wip_template, headers ], @@ -240,7 +250,9 @@ def html_main_page(wip_html): page = '%s\n%s%s'%(page, 6*' ', meta) page = '%s\n%s\n'%(page, 4*' ') + \ - '%s\n '%(4*' ', post_ID, domain.domain_css) + '\n%s'%( + 4*' ', post_ID, domain.domain_css + ) # Add tab header in page for header in headers.rsplit('\n'): @@ -266,5 +278,5 @@ def html_main_page(wip_html): for footer in footers.rsplit('\n'): page = '%s\n%s%s'%(page, 4*' ', footer) - #print(page) + print(page)