← Home
What's Portabloc?
31 October 2023
Pb is a tiny CMS for creative coders.
Create a beautiful blog just from Markdown files. Drag and drop them to your /posts folder. Portabloc will do the rest ✨🪄
Small and easy, as technology should be.
Pb is a minimalist CMS, lightweight and easily customizable. For those who want to create simple and modern sites without complex deployments.
- -> No database
- -> No Javascript
- -> No bloatware
Installation
You can host it locally, on a shared hosting, on a VPS...
Requires:
- PHP >5.03 or higher
- mbstring
- mod_rewrite
First steps
- Unzip the
Portabloc.zip
file in the directory where your domain is pointing to. - Edit the
app/config.ini
file and change the value of the following variable to the domain of your site:
->site.url = 'https://yoursite.url'
- Edit the rest of the variables with your personal info:
->blog.title
->blog.description
->blog.image
->blog.author
etc. - Add your first entry in the
posts/
directory, be sure to follow this format when naming it:
2023-11-01_title-entry.md
(the underscore separates the date from the slug). - Edit the entry in Markdown format. Here is a cheat sheet:
Learn Markdown in Y Minutes - Portabloc allows you to add tags to your entry simply with a comment written as follows:
# Hello, this is my first entry <!--tags: ideas,thoughts,postit--> This is the content of the post, blablabla....
- Save changes to your post and visit your website, your content is now published!
- The feed.xml file will auto-generate to get your RSS up to date.
- If not, you may need to change its writing permissions or ownership. To do this run:
chmod 755 feed.xml
orchown www-data:www-data feed.xml
.
- You can also serve Markdown as static pages outside the blog. Simply create them in the
static/
folder. You don't need to put the date in the filename, just the slug, like this:page-title.md
- To add the pages to the menu, add their titles and urls to the config file, as it follows:
link.header.1 = "About","https://yoursite.url/about" link.header.2 = "Hello World","https://yoursite.url/hello-world
Get Portabloc
Portabloc is free software.
This software is provided without warranties under under AGPL v.3.0 license. You can use it without limitations, study it, modify it and redistribute it under the same license.