A minimalistic, plain text-based blog engine written in PHP, inspired by the simplicity and structure of RFC format. It's designed to display content as plain text, keeping it simple, light, and easy to set up, with no need for a database.
See it in action here.
- Text Files as Posts: Just write your blog posts as plain text files.
- Simple Configuration: Manage settings with an easy-to-edit YAML config file.
- No Database Needed: No need to set up a database, as all data is stored in files.
- Customizable Display: Adjust text width and other display settings through the configuration.
- Clone the Repository
git clone https://github.com/coignard/weblog.git
- Place Your Posts
Save your blog posts as
.txt
files in theweblog/custom-category-name/
directory. - Configure
Open
config.yml
and adjust the settings to match your preferences.
You're all set! Happy blogging!
If you're using nginx, here's a basic setup you can start with. This configuration assumes Weblog is installed in /var/www/weblog
.
server {
listen 80;
server_name example.com;
root /var/www/weblog;
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/([^/]+)$ $scheme://$host/$1/ permanent;
rewrite ^/(.*)/$ /index.php?go=$1 last;
}
location ~ \.php$ {
include fastcgi-php.conf;
fastcgi_pass php-fpm;
}
}
Replace example.com
with your actual domain.
Navigate to your blog's URL. The homepage will display a list of all posts. Access individual posts by appending /your-post-slug/
to the URL.
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is open-sourced under the MIT License. See the LICENSE file for more details.