fix links

This commit is contained in:
Bruno Rybársky 2024-01-12 15:27:38 +01:00
parent 83537c3cdb
commit ab46b0c0c0

@ -12,7 +12,7 @@ foreach($site_dirs as $site_dir){
$pages_dir = array_diff(scandir("$static_page_dir$site_dir"), array('.', '..')); $pages_dir = array_diff(scandir("$static_page_dir$site_dir"), array('.', '..'));
$navsite = $navsite_template; $navsite = $navsite_template;
$site_location = "$site_dir.$domain.$tld/$default_page"; $site_location = "$protocol$site_dir.$domain.$tld/$default_page";
$site_class = "class=\"navsite_link\""; $site_class = "class=\"navsite_link\"";
$site_name = str_replace("_", " ", $site_dir); $site_name = str_replace("_", " ", $site_dir);
$navsite = str_replace("__CLASS__", $site_class, $navsite); $navsite = str_replace("__CLASS__", $site_class, $navsite);
@ -32,7 +32,7 @@ foreach($site_dirs as $site_dir){
$page_class = "class=\"navpage_link active\""; $page_class = "class=\"navpage_link active\"";
} }
$page_location = "$site_dir.$domain.$tld/$page_dir"; $page_location = "$protocol$site_dir.$domain.$tld/$page_dir";
$page_name = str_replace("_", " ", $page_dir); $page_name = str_replace("_", " ", $page_dir);
$page_name = explode(".", $page_name)[0]; $page_name = explode(".", $page_name)[0];