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 + \ + '