Make codeblocks responsive and don't hardcode baseURL

This commit is contained in:
southerntofu 2021-03-20 19:15:04 +01:00
parent 8d5275e3a4
commit 42a438fc52
3 changed files with 9 additions and 6 deletions

View File

@ -1,8 +1,4 @@
<?php
//Name of your site
$site_name="Thunix Wiki";
//Root for the site, in a browser
$site_root="https://wiki.thunix.net";
?>

View File

@ -88,3 +88,8 @@ body {
text-align: center;
padding-top: 30pt;
}
pre > code {
overflow-x: auto;
display: block;
}

View File

@ -29,12 +29,14 @@ $header = file_get_contents("includes/header.md");
$sidebar = file_get_contents("includes/sidebar.md");
$content = file_exists($content_file) ? file_get_contents($content_file) : str_replace('$page', "$page", file_get_contents("includes/404.md"));
$footer = file_get_contents("includes/footer.md");
// TODO: Stylesheet URL assumes wiki is not operate in subfolder
print "<!DOCTYPE html>
<html lang='en'>
<head>
<title>$site_name - $page</title>
<link rel='stylesheet' type='text/css' href='$site_root/includes/$site_style.css'>
<link rel='stylesheet' type='text/css' href='/includes/$site_style.css'>
</head>
<body>
<!-- Begin Header -->