dead-simple blog template powered by Markdown and PHP
- Simple and lightweight blog engine
- Markdown support for writing posts
- Multi-language support
- Customizable themes (light/dark mode)
- SEO-friendly
- Mobile-responsive design
- Built-in statistics tracking
- Easy deployment with Docker
- Clone the repository:
git clone https://github.com/Ooggle/dead-simple-blog.git
cd dead-simple-blog
-
Edit
docker-compose.yml
to set your environment variables. -
Start the blog:
docker-compose up -d
Your blog is now running!
Edit website.conf.php
to customize your blog settings.
The sitemap.json
file is where you add and manage your articles. Here's how it works:
- You can add articles that point to either
.md
,.html
, or.php
files. - The engine will automatically display the articles on the website.
- To hide an article from the list (but still make it accessible via URL), add
"hidden": true
to the article entry. - Articles are not sorted by date, but by their order in the file. The article at the top will be displayed first.
Example structure:
{
"posts": [
{
"url": "my-first-post",
"title": "My First Post",
"date": "2023-04-15",
"file": "articles/my-first-post.md"
},
{
"url": "hidden-article",
"title": "Hidden Article",
"date": "2023-04-16",
"file": "articles/hidden-article.html",
"hidden": true
}
]
}
The sample file in the repository provides examples of different possibilities for creating articles.
-
📝 Adding Posts: Add your articles to the
sitemap.json
file. -
🏷️ Organizing Content: Use tags to categorize your posts.
-
🌐 Multi-language Support: Set up language-specific content in the
sitemap.json
file.
-
🌓 Themes: The blog supports both light and dark modes. Customize the colors in
website.conf.php
. -
📐 Layout: Modify the templates in the
blog/assets/inc/
directory to change the layout and structure of your blog.
To enable and view statistics for your site:
- Set
$config['enable_stats'] = true;
inwebsite.conf.php
. - Go to
/admin/setup
and enter your admin credentials (set in docker-compose.yml). - Access
/admin/
or/admin/dashboard
to view your statistics.
Use the provided update script to keep your blog up-to-date:
wget https://raw.githubusercontent.com/Ooggle/dead-simple-blog/master/update.sh && chmod u+x ./update.sh
./update.sh path/to/your/apache2/src/
Contributions are welcome! Please feel free to submit a Pull Request.