Skip to content

Commit

Permalink
Fix 404.php and migrate to new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 16, 2023
1 parent 36f7da5 commit ed12a03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
11 changes: 7 additions & 4 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php
require_once 'system/bootstrap.php';
require 'vendor/autoload.php';

global $page_meta;
use Atas\SsgSystemPhp\AtasSsg;

$page_meta->title = "404 Not Found";
$page_meta->desc = "This page has not been found.";
$ssg = new AtasSsg(__DIR__);
$ssg->pageMeta->selectedTab = $tpl->meta->selectedTab ?? "home";

$ssg->pageMeta->title = "404 Not Found";
$ssg->pageMeta->desc = "This page has not been found.";

require_once 'layout/header.php';
?>
Expand Down
3 changes: 0 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php

require 'vendor/autoload.php';

//require_once __DIR__ . '/vendor/atas/ssg-system-php/src/AtasSsg.php';

use Atas\SsgSystemPhp\AtasSsg;

$ssg = new AtasSsg(__DIR__);
Expand Down
1 change: 0 additions & 1 deletion page.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

require 'vendor/autoload.php';

use Atas\SsgSystemPhp\AtasSsg;
Expand Down
1 change: 0 additions & 1 deletion post.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

require 'vendor/autoload.php';

use Atas\SsgSystemPhp\AtasSsg;
Expand Down

0 comments on commit ed12a03

Please sign in to comment.