From ec64ff32ab8b4dcb80ca92a584f6ce54de915c0d Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Thu, 6 Apr 2023 10:18:40 +0200 Subject: [PATCH] HTML changes. Show main title

in
. New author line at the end of article --- src/var/lib/tyto/program/html.py | 31 +++++++++++++----------- src/var/lib/tyto/translations/site_en.py | 6 ++--- src/var/lib/tyto/translations/site_fr.py | 8 +++--- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 0466b4e..943d800 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -138,8 +138,8 @@ def create_main_page(target, article_bottom): ' \n' + \ ' {%s} \n'%( - langs.site.tyto_psrc, + ' title="%s [%s]">{%s} \n'%( + langs.site.tyto_psrc, db.title, langs.site.source_code ) @@ -169,21 +169,24 @@ def create_main_page(target, article_bottom): ' \n' + \ '\n' + \ '
\n' + \ + '

%s

\n'%( + db.title, langs.site.w_written, db.date, + langs.site.by, db.author, + db.title, + ) + \ + '%s\n'%article_bottom + \ '
\n' + \ '

\n' + \ - ' %s\n'%( - db.title, langs.site.w_written, db.date, langs.site.by, - db.author, - langs.site.article - ) + \ - '%s'%post_html_code + \ - ' %s \n'%langs.site.written_by + \ - ' %s. \n'%(db.author) + \ + ' %s, %s\n'%( + db.author, langs.site.author_of, db.title, + db.author, langs.site.le + ) + \ '%s\n'%time_html_pub + \ + '%s'%post_html_code + \ '

\n' + \ '
\n' + \ - '%s\n'%article_bottom + \ '
\n' + \ '\n' + \ '\n' + \ @@ -227,9 +230,9 @@ def create_html_time_meta(process): '\n' + \ ' \n' + \ '' diff --git a/src/var/lib/tyto/translations/site_en.py b/src/var/lib/tyto/translations/site_en.py index c99aa7c..a1e655e 100644 --- a/src/var/lib/tyto/translations/site_en.py +++ b/src/var/lib/tyto/translations/site_en.py @@ -29,6 +29,7 @@ title = 'Title' File = 'File' name = 'Name' by = "by" +le = "the" q = '?' i = '!' pp = ":" @@ -40,12 +41,11 @@ source_code = "Source code" home = "Home" go_home = "Go to Homepage" read = "Read" -tyto_psrc = "Show this article source code in Tyto format" +tyto_psrc = "Source code in Tyto format of" w_written = "was written the" w_published = "was published the" written = "written the" -written_by = 'written by' -published = "Published the" +author_of = "is the uthor of" # Sidebar site_sdb_t = "Featured..." diff --git a/src/var/lib/tyto/translations/site_fr.py b/src/var/lib/tyto/translations/site_fr.py index 06928b2..8d3bd58 100644 --- a/src/var/lib/tyto/translations/site_fr.py +++ b/src/var/lib/tyto/translations/site_fr.py @@ -28,6 +28,7 @@ title = 'Titre' File = 'Fichier' name = 'Nom' by = "par" +le = "le" q = ' ?' i = ' !' pp = " :" @@ -39,12 +40,11 @@ source_code = "Code source" home = "Accueil" go_home = "Aller à la page d'accueil" read = "À lire" -tyto_psrc = "Voir le code source au format Tyto de cet article" +tyto_psrc = "Code source au format Tyto de" w_written = "a été écrit le" w_published = "a été publié le" -written = "écrit le" -written_by = 'écrit par' -published = "Publié le" +written = "écrit le" +author_of = "est l'auteur de" # Barre latérale site_sdb_t = "À l'affiche..."