diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 2c730bc..7913020 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -16,7 +16,7 @@ #---------------------------------------------------------------------- #********************************************************************** - +import os import tyto # Load domain configuration DB @@ -26,6 +26,7 @@ Tyto = 'Tyto - Littérateur' tytogit = 'https://git.a-lec.org/echolib/tyto-litterateur' tytoweb = 'https://tyto.echolib.re' + #==========================# # Load article DB # # Start HTML page sections # @@ -66,12 +67,27 @@ def create_metas_page(): relme = '\n'%( domain_relme ) - + + # Check for user metas from wip template/metas.html + #-------------------------------------------------- + metas_file = '%smetas.html'%srv_wip_tpl + user_metas = '' + try: + user_file = open(metas_file, 'r').read() + tyto.exiting("25", 'metas from: %s'%metas_file, False) + for line in user_file.rsplit('\n'): + if line.startswith('\n'%scale + \ + '\n'%domain_url + \ '\n' + \ '\n' + \ '\n'%visit + \ @@ -88,7 +104,9 @@ def create_metas_page(): '\n'%(rss_ref) + \ ''%icon_ref + \ - '%s'%relme + '%s'%relme + \ + user_metas + \ + '%s'%title # Create HTML tabulation for metas diff --git a/src/var/lib/tyto/program/tyto.py b/src/var/lib/tyto/program/tyto.py index ea83501..c47f6c7 100644 --- a/src/var/lib/tyto/program/tyto.py +++ b/src/var/lib/tyto/program/tyto.py @@ -504,6 +504,7 @@ def exiting(nbr, value, out): '22' : ':? %sNot paired%s symbols: %s'%(CY, CS, value), '23' : ':? %sCorrupted database%s: %s'%(CY, CS, value), '24' : ':? %sfile missing%s (wip article): %s'%(CY, CS, value), + '25' : ':D Add contents %s'%value, '255' : ':| Maybe later...' }