Skip to content

Commit

Permalink
feat(layout): Moved header and footer to snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
holmey committed Mar 30, 2023
1 parent 58ab3ad commit 92c0964
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions site/snippets/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
</body>
</html>
7 changes: 7 additions & 0 deletions site/snippets/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<?php snippet('meta_information'); ?>
<?php snippet('robots'); ?>
</head>
<body>
12 changes: 5 additions & 7 deletions site/templates/default.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<html>
<head>
<?php snippet('meta_information'); ?>
<?php snippet('robots'); ?>
</head>
<body><h1><?= $page->title() ?></h1></body>
</html>
<?php snippet('header'); ?>

<h1><?= $page->title() ?></h1>

<?php snippet('footer'); ?>

0 comments on commit 92c0964

Please sign in to comment.