Wallog is a file based blog cms
PHP CSS ApacheConf
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
content
nbproject
posts
themes/wallog
.gitignore
.htaccess
.nwaccess
Markdown.php
config.php.sample
functions.php
index.php
indexnw.php
prefs.php
readme.md

readme.md

Title: Welcome to wallog
Description:
Author: Michael Demetriou
Date: 2014-08-31

--

wallog is a simple, themeable, hopefully modular, blog management system, inspired by PicoCms and mainly targeted to developers. Just clone it, change config.php and prefs.php and start adding content in this folder. Every post is a seperate file, and formatting is done using markdown.

How to install

You will have to edit prefs.php and config.php. The configuration is split in two in order to be able to add config.php which is server-dependent in .gitignore and still be able to version the changes in preferences.

Because of this it is possible to maintain two instances of wallog in a single git repository as branches. If you keep master unchanged you will also be able to apply updates to your production blog(s) by merging master.

I usually init a bare repo outside public_html on my server and set this up as a remote. Then I create a post_receive hook that reads like this:

GIT_WORK_TREE=/path/to/public_html git checkout -f

Then you just need to push master to that remote and your blog will be published. If you don't want to push master but another branch, you need to do this

git symbolic-ref HEAD refs/heads/mybranch

inside the bare repo

How to write

Inspect this file, it's at content/posts/welcome-to-wallog.md. Then copy it, change the headers, edit the post and just save it.

Metadata goes in a block at the top of each file, seperated from the actual post with two minus symbols --.

I usually put the headers in a code block so that it looks nice in Atom or similar editors

Atom

Wallog misses paging functionality for the time being.

In action

If you want to see wallog in action go here

V2

Since b19cf6da I changed the style of the headers in each post because the old style messed up Atom's syntax highlighting, and was frankly, stupid.

If you have an older blog you'll need to update all your posts to the new style.