Add example file.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
0.1.0
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$site_name = "New Project";
|
||||
$site_author = "Nicolás A. Ortega Froysa";
|
||||
$site_url = "http://example.com/";
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$title = "Blog";
|
||||
include("templates/header.html.php");
|
||||
?>
|
||||
|
||||
<p>
|
||||
Welcome to my blog page! Here's a list of my current entries:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
foreach(glob("site/blog/*.cfg.php") as $i)
|
||||
{
|
||||
include($i);
|
||||
$entry_file = substr($i, 4, -8) . '.html';
|
||||
echo "<li><a href='$entry_file'>$blog_date - $blog_title</a></li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
include("templates/footer.html.php");
|
||||
?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$blog_title = "My First Post";
|
||||
$blog_date = "2022-11-07";
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
include("site/blog/000-first.cfg.php");
|
||||
$title = $blog_title;
|
||||
include("templates/header.html.php");
|
||||
?>
|
||||
<p>My first blog post.</p>
|
||||
<?php
|
||||
include("templates/footer.html.php");
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$title = "Home";
|
||||
include("templates/header.html.php");
|
||||
?>
|
||||
<p>
|
||||
Hello, World! This is an example page.
|
||||
</p>
|
||||
<?php
|
||||
include("templates/footer.html.php");
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
A test file.
|
||||
@@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?= $title ?> | <?= $site_name?></title>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= $title ?></h1>
|
||||
Reference in New Issue
Block a user