Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Lame Blog, the lamest blog engine in the world
C# CSS JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.cvsignore
ChangeLog
README
RSS.NET.dll
TODO
comments
config.cs
config.xml
entry
entry.test
lb.cs
log-style.css
makefile
prettyprint.js
template
template.test
xml.gif

README

This is Lame Blog.

	A small script that I wrote to maintain my blog on the web.  I
	did not use another blog system, because I had different
	requirements than other people have.

	I wanted:

		* To support off-line editing.  Since for long periods
	  	  of time I might not have an internet connection.

		* To be able to edit my blog entries with my choice
		  editor, not using some integrated tool.

		* To keep my old .txt file format for my entries.

		* To do some minimal processing on the input.

	To configure LameBlog, you must create a file config.xml, which
	looks like this:

		<?xml version="1.0"?>
		<config
		    Author="Miguel de Icaza (miguel@gnome.org)"
		    BlogDirectory="/home/miguel/activity"
		    BlogFileName="index.html"
		    BlogWebDirectory="http://tirania.org/blog/"
		    BlogImageBasedir="http://primates.ximian.com/~miguel"
		    Copyright="Miguel de Icaza"
		    Description="Miguel de Icaza's web log"
		    ManagingEditor="miguel@gnome.org"
		    Title="Miguel de Icaza"
		    RSSFileName="miguel"
		    InputEncoding="utf-8"
		    OutputEncoding="utf-8"
		    AnalyticsStub="analytics"
		    CommentsStub="comments"
		/>

	The various parameters should be self explanatory.
		
	It looks for blog entries in:

		~/activity/YYYY/mmm-dd{-N}.{html|txt}

	Ie, for example:

		~/activity/2003/oct-01.html

	For files with the HTML ending, it assumes that the title for
	the blog entry will be the first line (which should be tagged
	with <h1>title</h1>).

	For text files, the first line should be formatted like this:

		@This is my Title

	To add multiple entries per day, append a -N to the entry:

		~/activity/2003/oct-01-1.html
		~/activity/2003/oct-01-2.html

	For historic reasons, it generates an all.html (compatibility
	with old permalinks) and also now it generates per-day
	permalink entries in the archive/ directory.

	To run, you must type:

		make

	To upload, edit the settings on the Makefile, and type:

		make push

	The result is then pushed to a server with rsync.

	The AnalyticsStub is the file provided to you by google as the
	stub that you must insert

* Commands

	The following commands can be used in your individual blog entries:

	#include file

		Will include the contents of "file" into the blog entry

	#pic filename,caption

		Will generate the code to center the image stored in
		filename with the given caption.

	#comment, #comments

		Will enable the entry to have comments.   To activate
		comments, you need to get a comment hosting provider,
	  	and then paste the stub into the file `comments', or
	  	the file referenced in the config.xml CommentsStub 
		field

Enjoy,
Miguel de Icaza (miguel@gnu.org)
Something went wrong with that request. Please try again.