diff --git a/src/var/lib/tyto/program/domain.py b/src/var/lib/tyto/program/domain.py index 3988417..6d0023f 100644 --- a/src/var/lib/tyto/program/domain.py +++ b/src/var/lib/tyto/program/domain.py @@ -433,8 +433,8 @@ def create_domain(target, option): # Force will ask to create in template print(' │') #create_sidebar(option) - #html.manage_configs('sidebar', 'Force') - #html.manage_configs('navbar', 'Force') + html.manage_configs('sidebar', 'Force') + html.manage_configs('navbar', 'Force') html.manage_configs('metas', 'Force') html.manage_configs('footer', 'Force') @@ -481,12 +481,9 @@ def create_sidebar(option): if tyto.n == 0: sdb_load = sdb_load_fr elif tyto.n == 1: sdb_load = sdb_load_en - - ask = ' ├ Use default (empty) sidebar config ? ' - log = ' ├ Create file: %s'%sidebar_load - + # Create new file, or ask if exists - ask = ' ├ Use default (empty) sidebar config file ? ' + ask = ' ├ Use default (empty) _configs/tyto.sidebar file ? ' log = ' ├ Create file: %s'%sidebar_load if os.path.exists(sidebar_load): @@ -501,6 +498,7 @@ def create_sidebar(option): # navbar load file translated # #-----------------------------# def create_navbar(option): + navbar_load = tyto.navbar_load nav_load_fr = '# Pour : Tyto - Littérateur\n' + \ '# Type : fichier texte\n' + \ '# Description : Fichier utilisé par "tyto wip"\n' + \ @@ -547,7 +545,7 @@ def create_navbar(option): elif tyto.n == 1: nav_load = nav_load_en # Create new file, or ask if exists - ask = ' ├ Use default (empty) navbar config file ? ' + ask = ' ├ Use default (empty) _configs/tyto.navbar file ? ' log = ' ├ Create file: %s'%navbar_load if os.path.exists(navbar_load): diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 5226840..87aeb39 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -34,10 +34,11 @@ Tytosrc = '('%(8 * ' ') @@ -238,6 +238,7 @@ def create_navbar(option, target): continue # Add link to HTML structure + empty = False menu_item = '\n%s