Add documentation. #13

Merged
20xd6 merged 12 commits from manfromhuh/simple_blog:master into master 2022-07-05 15:22:31 -04:00
Showing only changes of commit 4117b552f2 - Show all commits

View File

@@ -1,7 +1,8 @@
<!DOCTYPE html>
<html lang="en-US">
<?php
function Title() {
//Sets the page title based on the name of the current directory
function Title() {//Needs cleanup.
//~ $new_title = $_SERVER['REQUEST_URI'];
//~ $new_title = preg_replace("/^^\//i", "", $new_title);
@@ -27,7 +28,7 @@
?>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<?php
<?php//If a tags file is present parse it and add any tags found to the renderd page's metadata.
if(file_exists('tags')){
$tag_data_raw = fopen('tags',"r");
$tag_data = fread($tag_data_raw, filesize('tags'));