From 71bda8a4d75a21df1924f00786ea2411f7464b16 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Fri, 10 Nov 2023 03:25:42 +0100 Subject: [PATCH] Update image and stylesheet paths --- page-generator/index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/page-generator/index.php b/page-generator/index.php index 80b565f..63fc190 100644 --- a/page-generator/index.php +++ b/page-generator/index.php @@ -26,18 +26,21 @@ foreach ($image_list as $key => $image) { $new_path = BASE_PATH_TEMP . "/assets/img/" . $image['id'] . '.' . pathinfo($image['path'], PATHINFO_EXTENSION); copy($old_path, $new_path); - $image_list[$key]['path'] = "../assets/img/" . $image['id'] . '.' . pathinfo($image['path'], PATHINFO_EXTENSION); + $image_list[$key]['path'] = "../../assets/img/" . $image['id'] . '.' . pathinfo($image['path'], PATHINFO_EXTENSION); } // create partials: $partialsPath = BASE_PATH_TEMP . "/partials"; mkdir($partialsPath); -#region header +#region head // TODO: get the header and idk + +$head_path = $partialsPath . "/head.html"; + // generate head -$generator->writeToFile($partialsPath . "/head.html", ' +$generator->writeToFile($head_path, ' @@ -46,7 +49,7 @@ $generator->writeToFile($partialsPath . "/head.html", ' ' . $generator->templateVar("page-title") . ' - + '); -- 2.30.2