From c20b6a1b4d55fa50a3602929ac649bdc1f0c6676 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sat, 16 Nov 2024 00:44:19 +0100 Subject: [PATCH] script js pour recherche par moteur externe --- converters.sh | 2 ++ enrich_html.py | 6 +++--- gather_tags_in_json.py | 7 +++---- html-websites/cipherbliss_blog/style.css | 11 +++++++++++ html-websites/tykayn_blog/style.css | 11 +++++++++++ templates/js/main_script.js | 16 ++++++++++++++++ templates/styles/style_general.css | 11 +++++++++++ templates/styles/style_general.css.map | 2 +- templates/styles_src/style_general.scss | 17 +++++++++++++++++ website_config.py | 4 +++- 10 files changed, 78 insertions(+), 9 deletions(-) create mode 100644 templates/js/main_script.js diff --git a/converters.sh b/converters.sh index 32dee119..a56ad4c9 100755 --- a/converters.sh +++ b/converters.sh @@ -207,6 +207,8 @@ for website_name in "${blogs_folders[@]}"; do # copier le style dans le dossier html cp $style_file html-websites/$website_name/style.css + # copier le script permettant la recherche + cp templates/js/main_script.js html-websites/$website_name/main_script.js # traiter les réductions d'images dans l'inbox python3 pictures_resize.py diff --git a/enrich_html.py b/enrich_html.py index eae1aaa6..949fb3cc 100755 --- a/enrich_html.py +++ b/enrich_html.py @@ -72,6 +72,7 @@ def enrich_one_file(html_content: str, partials: dict = {"header_page": "", "foo + {template_content['TITLE']} @@ -102,7 +103,7 @@ def enrich_one_file(html_content: str, partials: dict = {"header_page": "", "foo """,