Uralte Blogsoftware, die ich 2009 in Python geschrieben habe. Nicht mehr zur produktiven Nutzung geeignet! ;-)
Go to file
Stefan Ritter fc815ad4e7 Doing some cleanup in styles/
* ATTENTION: you have to delete .css from your stylename in config
* Deleted some non-used images
* Everything is now in a subfolder
2009-12-07 12:28:34 +01:00
entries Changed the Demo-comment to the new format 2009-03-07 16:11:50 +01:00
plugins Added a simple plugin interface 2009-12-07 00:32:35 +01:00
static Changed the irc server 2009-03-08 20:33:19 +01:00
styles Doing some cleanup in styles/ 2009-12-07 12:28:34 +01:00
blogthon.cgi Doing some cleanup in styles/ 2009-12-07 12:28:34 +01:00
configuration Doing some cleanup in styles/ 2009-12-07 12:28:34 +01:00
linklist Replaced the default link in linklist with the new Blogthon Hompage 2009-12-01 17:28:01 +01:00
README More documentation 2009-12-07 01:51:35 +01:00

Index:

 1) Installation
 1.1) Apache
 1.2) Lighttpd
 2) Entries
 3) Staticpages
 4) Comments
 5) Linklist


1) Installation
===============
The installation of Blogthon assumes that your httpd supports CGI and Python
is installed. If all this is given, you can download Blogthon in a directory
of your choice. After that you have to symlink 2 files into your www directory:

 * blogthon.cgi
 * styles

Then create 3 directories and 1 empty file:

 * entries/
 * static/
 * plugins/
 * linklist

Now copy the example configuration into your www directory, or to
../blogthonrc or ../.blogthonrc.

If all this is done, you can continue with setting up your httpd.


1.1) Apache
===========
To enable CGI you just have to run 'a2enmod cgi' as root. Now put something
like this in /etc/apache2/sites-available/default:

<Directory /this/is/where/your/www/root/is/>
    Options +ExecCGI
    AddHandler cgi-script .cgi
    DirectoryIndex blogthon.cgi
</Directory>

To finish the installation, reload Apache with
'/etc/init.d/apache2 force-reload' as root.


1.2) Lighttpd
=============
Coming soon...


2) Entries
==========
To start blogging you just have to open your favorite editor, write your entry
and save it under entries/. The filename should be like this:
 (entry title).(suffix)
The suffix can be set in your configuration file. Default is '.txt'.

While parsing an entry, blogthon places a <br /> behind each line, except for
lines with <ul>, <li>, <table>, etc... So you don't need to make your own
layout using <br /> tags. Aside from that you can certainly use <p> elements
and all other HTML tags.

Time and date of your entry are taken from the timestamp of your file.
Unfortunately this timestamp changes when you edit your file again. As a
workaround I use a small shellscript instead of starting vim/emacs/...:
http://git.fucktheforce.de/?p=xeno;a=blob_plain;f=viod;hb=HEAD


3) Staticpages
==============
Staticpages are placed under static/ without a suffix. To sort them, you can
start the filename with a literal and -. So '01-Foo' will be placed before
'02-Bar'.

If you want to make a staticpage to be a link to an extern page, you just have
to place the following content in the first line:
extern_link: http://your/link.


4) Comments
===========
Comments are saved under entries/ like all entries, but with the suffix
'.comments'. The syntax in this file is like this:

-.Nickname
+.Date
.some text
.more text


5) Linklist
===========
To add a link to your linklist, just add a line to the linklist file:

http://some/link name of your link

Of course you can use empty lines to split different sorts of links.