Single File HTML/CSS/PHP blog in less than 100 lines. Fork of Petabyt's [TinyBlog](https://github.com/petabyt/tinyblog).
This repository has been archived on 2025-12-25. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • PHP 92.4%
  • CSS 5.5%
  • Python 1.9%
  • Shell 0.2%
Find a file
2022-03-02 15:12:23 +01:00
archive moved to archive 2022-02-08 00:39:26 +01:00
assets assets folder 2022-03-01 12:04:46 +01:00
font/fira-code added Fira Code as main font 2022-02-27 15:45:31 +01:00
lib added highlight code highlighting with specific theme 2022-02-08 00:44:30 +01:00
.gitignore updated gitignore to keep folders just not the md posts 2022-02-07 01:27:27 +01:00
.htaccess removed buggy rules 2022-02-08 01:36:04 +01:00
blog_post_template.md blog_template update 2022-03-01 17:40:15 +01:00
index.php merged with upstream 2022-03-01 13:38:13 +01:00
LICENSE fork and initial modified project PR 2022-02-03 19:28:58 +00:00
README.md added permissions/ownership prerequisits 2022-02-08 01:31:34 +01:00
rss.php correcting Blog owner name in rss 2022-02-08 01:22:40 +01:00
style.css removed background-color and border-radius 2022-03-02 15:12:23 +01:00

Tinyblog

Fork of Petabyt's TinyBlog

Single File HTML/CSS/PHP blog in less than 100 lines. See it in action: https://tgm.happyngreen.fr/tinyblog/

Features

Tiny source code. Just pull index.php and customize.
Minimal markdown parser. Easy to customize to your liking.

Setup

In the posts folder, create a file named "1" for the first post, "2" for the second, and so on.

For optimal File and Folder Permissions and Ownership, set all folders and subfolders to 755 and files to 644. Use Filezilla to apply recursively.

Theme

The current theme is based on the original theme in archive/index-daniel.php. Current improvements include lib/highlight.js to highlight code syntax in pre code blocks, as well an overhaul in colors, positioning, etc.

Markdown parsing

My fork uses lib/parsedown.php. It supports most of the typical Markdown syntax, but has some additional features provided by the original custom Tinyblog markdown parser when appropriate:

Type --- to insert a "Read More" link, and cut off the rest of the text.
Use \* to prevent the asterisk from being recognized.