diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index e04db08..85d5c6a 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -455,65 +455,6 @@ def create_navbar(option): return -# Ask to replace (except from 'publish template') - if not option == 'pub' and os.path.exists(target): - ask_html = ' ├ Replace %s ? '%target - res = '' - - try: - res = input(ask_html) - except KeyboardInterrupt: - print('') - logs.out("255", '', True) - if not res in ['y', 'Y']: - logs.out("255", '', True) - - # Close HTML tags - menu_html = '\n%s\n%s\n%s\n'%(menu_html, 8 * ' ', 6 * ' ') - tyto.set_file(target, 'New', menu_html) - print(' ├ Create file: %s'%target) - - ''' - # An index file must be in the src directory - for f in os.listdir(dir_uri): - print('>>> f=', f) - if f.startswith("index."): - if option == 'wip': - if not os.path.exists(wip_index): - logs.out('26', 'in wip "%s/": %s'%(direc, wip_index), False) - continue - elif option == 'www': - if not os.path.exists(www_index): - logs.out('26', 'in www "%s/": %s'%(direc, www_index), False) - e_www_index = True - continue - else: - logs.out("26", 'in src "%s/": %s'%(direc, dir_uri), False) - e_src_index = True - - # Add link to HTML structure - navbar_new = True - menu_item = '\n%s'%(10 * ' ') - menu_html = '%s%s'%(menu_html, menu_item) - - if e_src_index or e_www_index: - logs.out("1", '(index article)', True) - - # Nothing to do - if not navbar_new: - if not navbar_has: - logs.out('29', '(navbar): %s'%db.navbar_load, False) - return - else: - logs.out('28', '(navbar)', False) - return - # Ask to replace (except from 'publish template') if not option == 'pub' and os.path.exists(target): ask_html = ' ├ Replace %s ? '%target @@ -531,7 +472,7 @@ def create_navbar(option): menu_html = '\n%s\n%s\n%s\n'%(menu_html, 8 * ' ', 6 * ' ') tyto.set_file(target, 'New', menu_html) print(' ├ Create file: %s'%target) - ''' + #========================================================# # Create metas.html from _configs/tyto.metas.html #