just-a-blog

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 301b1936193874326ba0a361822bacc65dc3a198
parent f620e7c41680bd21f05a7e4ae367a66c9284ae00
Author: Overseer <overseer@mona.qualityreto.net>
Date:   Sat, 24 Feb 2018 01:09:41 -0600

lol i don't even remember

Diffstat:
README.md | 1+
functions.php | 4+++-
html/header.html | 2+-
posts/test_post.md | 1-
4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -11,6 +11,7 @@ A simple blog software that doesn't require a database, and separates content fr -- just-a-blog only requires PHP5+. No databases are necessary. -- Can port existing HTML pages and posts directly into just-a-blog with no need to reformat. (Just remember to change the extension to .md) - Full customization - Since just-a-blog strives to be small and lightweight, editing it should be extremely easy. +- No frameworks, no package managers. Just put the php files on your server in your preferred method. I guess you could do this with other softwares, but JAB *encourages* it. ## Install diff --git a/functions.php b/functions.php @@ -70,9 +70,11 @@ function post_list() { function set_title() { + $title = TITLE; + if( isset( $_GET['page'] ) ) { $thisPage = $_GET['page']; - $title = TITLE . " - " . format_name( $thisPage ); + $title .= " - " . format_name( $thisPage ); } return $title; diff --git a/html/header.html b/html/header.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>{0}</title> + <title>{1}</title> <link rel="stylesheet" href="/{1}/html/style/default.css" type="text/css"> </head> diff --git a/posts/test_post.md b/posts/test_post.md @@ -1 +0,0 @@ -This is a test post!