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