diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index 6f84f15..3fa1aa9 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -653,7 +653,6 @@ def check_content(post_bottom): if tpl1 != tpl2: logs.out("22", '"%s", "%s"'%(tag[0], tag[1]), False) - post_err = True #===============================================# diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 7d34f6c..3af42c8 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -386,9 +386,10 @@ def create_navbar(option): continue # Check if an index.[ext] and index.html exist and log - index_src = False - index_wip = False - index_www = False + index_src = False + index_wip = False + index_www = False + e_www_index = False for f in os.listdir(dir_uri): # An index file must be in the directory if f.startswith("index."): @@ -404,6 +405,7 @@ def create_navbar(option): www_index = '%s%s/index.html'%(db.srv_www, direc) if not os.path.exists(www_index): logs.out('26', 'in "%s": %s'%(direc, www_index), False) + e_www_index = True continue else: index_www = True @@ -414,6 +416,9 @@ def create_navbar(option): logs.out("26", 'in "%s": %s'%(direc, dir_uri), False) continue + if e_www_index: + logs.out("1", '(index article)', True) + # Add link to HTML structure navbar_new = True menu_item = '\n%s