A repository dedicated to a flat file engine I'd made to serve my blog @ Dude Tech it Out.
This is a repository hosting a flat file engine for blogging. You just need a host that allows PHP to be ran, upload this git and you're ready to go!
You edit the 'you' file to include the blog title (line 1), a quick summary of you (line 2) and your profile picture location (line 3).
Dude Tech it Out
Hey, my name is James! This is just a simple place to jot down some thoughts n post some stuffs.
/img/me.jpg
Simply go into the 'posts' folder and make a new file without an extension - e.g. My First Blog Post would be my-first-blog-post - with the following content:
Hello world! This is my first post!
|title$My First Blog Post
|date$April 13, 2022
|summary$Come view my first ever blog post! Keep in mind, I can always leave this blank, but it isn't recommended on short blog posts.
|image$img/banner-laptop.jpg
Content is going to be in BBCode markup. You can read more on the available BBcode below.
BBcode is a special implementation of HTML. Basically instead of <b>
it'll be [b]
. Here are the available BBCode for this engine:
- Font strong:
[strong]
- Headers:
[h1]
through[h6]
- Emphasized text:
[em]
- Make text italic:
[i]
- Do a quote:
[quote]
- Font size:
[size]
- Slash text:
[s]
- Center Text:
[center]
- List e-mail:
[email=james@selfo.io][/email]
or[email]james@selfo.io[/email]
- Make URL:
[url=https://dudetechitout.com]My Blog[/url]
- Image:
[img]The image to show[/img]
- List:
[list=1][*]This will be numbered[/list]
and[list][*]Will not be numbered[/list]
- Video:
[youtube]https://www.youtube.com/watch?v=O91DT1pR1ew[/youtube]
You can! Just name it what you'd like it to be called. For example, if you want to make about
you would just make a new file called about
in the pages
folder. It'll make that new page that'll show up in the top header of the page. The content you'd just type up using BBCode - look to the included projects
file in the pages
folder as an example.
That's all there is to it. There are some things that can be improved on, but it gets the job done for what it is. Hopefully you put it to some good use!