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): '