Addendat config file with comment support.  Use this file if you want to 
use Addendat's built-in comment system.

You'll need to configure these:

<%blogfile%>/home/YOUR_USERNAME/YOUR_HTMLDIR/addendat/blog.html</%blogfile%>

<%accesscode%>change this</%accesscode%>

<%blogtitle%>An unconfigured Addend&aacute;t</%blogtitle%>

<%blogurl%>http://yourdomain/addendat/blog.html</%blogurl%>

You don't *need* to configure these, but you probably want to edit %entry%
and %entryseparator% to match your design.

<%entryseparator%>
<P ALIGN=CENTER><IMG SRC="../../images/doublepurpleline.gif" WIDTH=200
HEIGHT=3 ALT="--------------"></P>
</%entryseparator%>

%add% can be top or bottom.
<%add%>top</%add%>

If you want to override the default "Entry added" page, set a
%entryadded% tag.

----------  COMMENTS SECTION  -------------

<%entry%>
<P><B>%year% %month% %day%</B>: %entry%</P>
<p align=right>{ <a href="http://yourdomain/addendat/comments/%entryid%.html">View 
Comments</a> | 
<a href="%cgiurl%?action=comment;blog=comments/%entryid%">Comment</a> }</p>
</%entry%>

Format for the dates on entry IDs.  Only useful if you have comments.
<%entryiddateformat%>%year%_%month%_%day%</%entryiddateformat%>

Format for the entry IDs themselves.
<%entryidformat%>%entryiddateformat%-%entrynum%</%entryidformat%>

File storing current entry ID.  Must be writable by the blog script.
<%entryidfile()%>/home/YOUR_USERID/.addendat-entryid</%entryidfile()%>

URL to the CGI script.  Must be an URL that will be valid from every page
th %cgiurl% MCI appears.
<%cgiurl%>/YOUR_CGI_PATH/addendat.cgi</%cgiurl%>

Make it so you can post comments without an access code.
<%accesscode(comments/)%></%accesscode(comments/)%>

File to store comments in.  This is a little weird because the %blog%
is expanded to comments/[whatever-this-comment's-entry-id-is], so it's actually
pointing at a comments/ directory inside your Addendat dir.
<%blogfile(comments/)%>/home/deekoo/deekoo.net_html/chronology/%blog%.html</%blogfile(comments/)%>

We want new comments added at the bottom.
<%add(comments/)%>bottom</%add(comments/)%>

<%blogfile(commentpage)%>/home/YOUR_USERNAME/YOUR_HTMLDIR/comments/%entryid%.html</%blogfile(commentpage)%>

Command-line bloggers only:
If the current username matches the chmodusers pattern, then chmod newly
created files to newfilemode.  This is used by the command-line blogging tool
to ensure that files become writable by the CGI.  If the current username
doesn't match the pattern, no chmod takes place.  The ^ and $ mark beginning
and end of string.
<%chmodusers%>^YOUR_USERNAME$</%chmodusers%>

Mode for files created while running as a user in chmodusers.  Leading 0
is important; it's octal.  This sets a file user-group-and-world readable
and writable.
<%newfilemode%>0666</%newfilemode%>

<%entry(commentpage)%>
<P><B>%user%<br>
%year% %month% %day%</B>:<br>
%entry%</P>
</%entry(commentpage)%>
<%entry(comments/)%>
<p>%user% on %year% %month% %day%:<br>
%entry%
</p>
</%entry(comments/)%>

<%entryadded(comments/)%>
<html>
<head>
<title>Entry Added</title>
<body>
<a href="%blog%.html">View Comments</a>
</body>
</html>
</%entryadded(comments/)%>

<%blankfile(commentpage)%>
<html>
<head><title>Entry Comments</title></head>
<body bgcolor="#000000" text="#00ff00" link="#ffffff" vlink="#cccccc" alink="#cc00ff">
<hr>
<blockquote>
<!-- Add Here (commentpage) -->
</blockquote>
<!-- Add Here (comments/%entryid%) -->
<p>{ <a href="%cgiurl%?action=comment;blog=comments/%entryid%">Add Comment</a> }</p>
</body></html>
</%blankfile(commentpage)%>

<%commentform(comments/)%>
<html><head>
<title>Addendat: Adding comment.</title>
<body bgcolor="#000000" text="#00ff00" link="#ffffff" vlink="#cccccc" alink="#cc00ff">
<form action="%cgiurl%" method="post">
Identificator: <input type=text name="user" value="Nameless User"><br>
<input type="hidden" name="blog" value="%blog%">
<textarea name=entry rows=15 cols=70></textarea>
<table border=0><tr><td>
<input type=submit value="Add comment">
</td></tr></table>
</form>
</body>
</html>
</%commentform(comments/)%>

<%leaves()%>commentpage</%leaves()%>

-------------------------------------------

And this only needs to be changed if you want to use a different Hub:

<%hubmachine%>deekoo.net</%hubmachine%>
<%hubscript%>/technocracy/addendat/hub.cgi</%hubscript%>



The %huburl% and %httpclient% tags are obsolete as of Addendat 0.2.

Addendat 0.3 supports multiple blogs without installing multiple copies
of the CGI.  Tags in the form %configtag% are defaults, which will be used
if not overridden by a tag for a specific blog.  Tags in the
form %configtag(blog)% are settings for an individual blog.

If you want an option to apply to the default blog but *not* to other
subblogs, use %option()%.

All the multi-blog stuff is commented out, since it's a bit more
complicated to configure - to uncomment it, remove the # signs from the
tags.

Leaf blogs let you have entries show up on multiple blogs at once. In this
particular example, I want the first few entries in my blog to show up on
my front page, which I've decided to name 'front'.  I use the explicit ()
so that adding things to the front page won't cause them to add themselves
over and over.
<#%leaves()%>front</%leaves()%>

And, to ensure that I only get the first few entries, I set a length limit 
of 1024 characters for front.  Note that blog entries aren't chopped, so 
the limit is really 1024 characters plus the end of the most recent entry.
<#%length(front)%>1024 characters</%length(front)%>

linkprefix adds the prefix to all A HREFs.  It's only needed if you want
to use relative links in multileaf blogs that are located in different
dirs.  Since my front page is http://deekoo.net/, and my main blog is 
http://deekoo.net/chronology, I want all links added to the main blog to
have ../ as a prefix.
<#%linkprefix()%>../</%linkprefix()%>

Archiving of old blog entries is not yet implemented.


