From 30d2f60daac76fa0ae1b0c4516a8df3d54c0e97f Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Sun, 4 Dec 2022 17:00:45 +0100 Subject: [PATCH] html, wip: fixes for bcodes, and others found --- src/var/lib/tyto/program/check.py | 3 +- src/var/lib/tyto/program/html.py | 51 +++++++++++-------------------- src/var/lib/tyto/program/wip.py | 22 ++++++------- 3 files changed, 30 insertions(+), 46 deletions(-) diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index f389de9..c68f163 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -91,7 +91,7 @@ def post_IDs(file_post): else: for i in range(0,slash): weburi = '%s../'%weburi - + # Get Hash from article's content global hash_chk hash_chk = get_filesum(post_uri, True) @@ -1227,6 +1227,7 @@ def create_DB(post_db): 'post_tmp = "%s"'%post_tmp, 'post_url = "%s"'%post_url, 'post_srv = "%s"'%post_srv, + 'web_uri = "%s"'%weburi, '\n# Article Status', 'post_chk = (\'%s\', \'%s\')'%(hash_chk,time_chk), 'post_wip = (\'%s\', \'%s\')'%(hash_wip,time_wip), diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 4638c06..32d538d 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -77,7 +77,7 @@ def html_main_page(wip_html): tags = '%s,%s'%(domain.domain_tags, post_tags) icon = '/template/favicon.png' logo = '/template/%s'%domain.domain_logo - f_css = '/template/styles.css' + f_css = '%stemplate/styles.css'%web_uri f_rss = '/rss.xml' i_rss = 'RSS 2.0. %s %s %s'%( domain.domain_title, domain.sep_titles, domain.domain_name @@ -183,7 +183,7 @@ def html_main_page(wip_html): trans[9][fl], post_author ) + \ ' , %s\n'%trans[10][fl] + \ - ' %s\n'%post_date + \ + ' %s\n'%sdb_date + \ '

\n' + \ ' \n' @@ -215,7 +215,7 @@ def html_main_page(wip_html): '