Projects are now able to read from a content dir, posted two projects
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
<?php $dots=str_repeat("../", substr_count(__DIR__, '/')-1); ?>
|
||||
|
||||
<?php
|
||||
header('Location: /wip');
|
||||
exit();
|
||||
include_once("$dots/includes/all.php");
|
||||
include_once("$dots/includes/projects.php");
|
||||
|
||||
$project_name = "Arch Chromebook";
|
||||
$project_content_dir = "$dots/assets/project_blogs/arch_chromebook";
|
||||
?>
|
||||
|
||||
<?php $srv_root = __DIR__; $dots = "";
|
||||
$slash_count = substr_count($srv_root, '/');
|
||||
for ($i = 1; $i < $slash_count; $i++) {$dots .= "../";};?>
|
||||
|
||||
<?php include_once("$dots/includes/all.php"); ?>
|
||||
<?php include_once("$dots/includes/projects.php"); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php echo head("test"); ?>
|
||||
<body>
|
||||
<?php echo title("Python Website"); ?>
|
||||
<html>
|
||||
<?php echo head_css($project_name, ["projects.css"], $dots); ?>
|
||||
<body>
|
||||
<?php echo navbar("0"); ?>
|
||||
<?php echo make_blog($dots, $project_name, $project_content_dir); ?>
|
||||
<?php echo footer(); ?>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user