HTML changes. Show main title <h1> in <article>. New author line at the end of article
This commit is contained in:
parent
0f63dace69
commit
ec64ff32ab
|
@ -138,8 +138,8 @@ def create_main_page(target, article_bottom):
|
||||||
' <span id="article_code"> \n' + \
|
' <span id="article_code"> \n' + \
|
||||||
' <a id="article_code_link"\n' + \
|
' <a id="article_code_link"\n' + \
|
||||||
' href="./%s"\n'%os.path.basename(db.short_src) + \
|
' href="./%s"\n'%os.path.basename(db.short_src) + \
|
||||||
' title="%s">{%s}</a></span> \n'%(
|
' title="%s [%s]">{%s}</a></span> \n'%(
|
||||||
langs.site.tyto_psrc,
|
langs.site.tyto_psrc, db.title,
|
||||||
langs.site.source_code
|
langs.site.source_code
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -169,21 +169,24 @@ def create_main_page(target, article_bottom):
|
||||||
' </header>\n' + \
|
' </header>\n' + \
|
||||||
'\n' + \
|
'\n' + \
|
||||||
' <article id="article_main">\n' + \
|
' <article id="article_main">\n' + \
|
||||||
|
' <h1 id="main_title"\n' + \
|
||||||
|
' title="[%s] %s %s %s %s">%s</h1>\n'%(
|
||||||
|
db.title, langs.site.w_written, db.date,
|
||||||
|
langs.site.by, db.author,
|
||||||
|
db.title,
|
||||||
|
) + \
|
||||||
|
'%s\n'%article_bottom + \
|
||||||
' <section id="article_infos">\n' + \
|
' <section id="article_infos">\n' + \
|
||||||
' <p>\n' + \
|
' <p>\n' + \
|
||||||
' <span id="article_title"\n' + \
|
' <span id="article_author"\n' + \
|
||||||
' title="[%s] %s %s %s %s">%s</span>\n'%(
|
' title="%s %s [%s]">%s</span>, %s\n'%(
|
||||||
db.title, langs.site.w_written, db.date, langs.site.by,
|
db.author, langs.site.author_of, db.title,
|
||||||
db.author,
|
db.author, langs.site.le
|
||||||
langs.site.article
|
) + \
|
||||||
) + \
|
|
||||||
'%s'%post_html_code + \
|
|
||||||
' <span>%s</span> \n'%langs.site.written_by + \
|
|
||||||
' <span id="article_author">%s</span>. \n'%(db.author) + \
|
|
||||||
'%s\n'%time_html_pub + \
|
'%s\n'%time_html_pub + \
|
||||||
|
'%s'%post_html_code + \
|
||||||
' </p>\n' + \
|
' </p>\n' + \
|
||||||
' </section>\n' + \
|
' </section>\n' + \
|
||||||
'%s\n'%article_bottom + \
|
|
||||||
' </article>\n' + \
|
' </article>\n' + \
|
||||||
'\n' + \
|
'\n' + \
|
||||||
'<!--# include virtual="/template/sidebar.html"-->\n' + \
|
'<!--# include virtual="/template/sidebar.html"-->\n' + \
|
||||||
|
@ -227,9 +230,9 @@ def create_html_time_meta(process):
|
||||||
'<!--Tyto_Published-->\n' + \
|
'<!--Tyto_Published-->\n' + \
|
||||||
' <time datetime="%s">\n'%date_raw + \
|
' <time datetime="%s">\n'%date_raw + \
|
||||||
' <span id="article_pub"\n' + \
|
' <span id="article_pub"\n' + \
|
||||||
' title="[%s] %s %s (%s)">%s %s</span>\n'%(
|
' title="[%s] %s %s (%s)">%s</span>\n'%(
|
||||||
db.title, langs.site.w_published, date_pub, time_pub,
|
db.title, langs.site.w_published, date_pub, time_pub,
|
||||||
langs.site.published, date_pub
|
date_pub
|
||||||
) + \
|
) + \
|
||||||
' </time>\n' + \
|
' </time>\n' + \
|
||||||
'<!--/Tyto_Published-->'
|
'<!--/Tyto_Published-->'
|
||||||
|
|
|
@ -29,6 +29,7 @@ title = 'Title'
|
||||||
File = 'File'
|
File = 'File'
|
||||||
name = 'Name'
|
name = 'Name'
|
||||||
by = "by"
|
by = "by"
|
||||||
|
le = "the"
|
||||||
q = '?'
|
q = '?'
|
||||||
i = '!'
|
i = '!'
|
||||||
pp = ":"
|
pp = ":"
|
||||||
|
@ -40,12 +41,11 @@ source_code = "Source code"
|
||||||
home = "Home"
|
home = "Home"
|
||||||
go_home = "Go to Homepage"
|
go_home = "Go to Homepage"
|
||||||
read = "Read"
|
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_written = "was written the"
|
||||||
w_published = "was published the"
|
w_published = "was published the"
|
||||||
written = "written the"
|
written = "written the"
|
||||||
written_by = 'written by'
|
author_of = "is the uthor of"
|
||||||
published = "Published the"
|
|
||||||
|
|
||||||
# Sidebar
|
# Sidebar
|
||||||
site_sdb_t = "Featured..."
|
site_sdb_t = "Featured..."
|
||||||
|
|
|
@ -28,6 +28,7 @@ title = 'Titre'
|
||||||
File = 'Fichier'
|
File = 'Fichier'
|
||||||
name = 'Nom'
|
name = 'Nom'
|
||||||
by = "par"
|
by = "par"
|
||||||
|
le = "le"
|
||||||
q = ' ?'
|
q = ' ?'
|
||||||
i = ' !'
|
i = ' !'
|
||||||
pp = " :"
|
pp = " :"
|
||||||
|
@ -39,12 +40,11 @@ source_code = "Code source"
|
||||||
home = "Accueil"
|
home = "Accueil"
|
||||||
go_home = "Aller à la page d'accueil"
|
go_home = "Aller à la page d'accueil"
|
||||||
read = "À lire"
|
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_written = "a été écrit le"
|
||||||
w_published = "a été publié le"
|
w_published = "a été publié le"
|
||||||
written = "écrit le"
|
written = "écrit le"
|
||||||
written_by = 'écrit par'
|
author_of = "est l'auteur de"
|
||||||
published = "Publié le"
|
|
||||||
|
|
||||||
# Barre latérale
|
# Barre latérale
|
||||||
site_sdb_t = "À l'affiche..."
|
site_sdb_t = "À l'affiche..."
|
||||||
|
|
Loading…
Reference in New Issue