April 17, 2007

Header - Standard Template

Some notes about this one

<base>

[page.base] is the base directory for your current folder.  This is used so that relative paths for links and images will still work for archives, where additional "directory" levels are appended to the URL.  This may need some tweaking to accommodate your own multiple directory levels.

The target option here controls how links are opened: _self makes them open in the current window; _blank will make each new link open in a new window (or tab, if your browser is set up that way).

Feeds

Both Atom and RSS feeds should be working now (sorry about that!)  The two links here should provide autodiscovery for your feeds in most browsers.  This works perfectly in Opera and IE7.  In Firefox, it does work, but automatically chooses the Atom feed without giving you an option.  This is odd, because if I add a third feed to the list, Firefox presents a menu for all three.

Both feeds validate, with some warnings in some cases; I'll be working on tidying that up so that they validate perfectly in all cases.  (Using the validator at feedvalidator.org.)

Doctype

The doctype is given as XHTML1 Transitional.  There's no way for me to guarantee that Minx generates valid XHTML1, short of running it through something like Tidy, which would double the load on the server.  I will work on cleaning up the standard templates, so that at least a freshly created blog will validate cleanly.




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[site.name]</title>

<link rel="stylesheet" href="/css/mee.css" type="text/css" />

<base href="[page.base]" target="_self">

[if.z folder.private]
<link rel="alternate" type="application/rss+xml" title="RSS" href="feed/rss" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="feed/atom" />
[/if.z]

<script language="JavaScript" src="http://mee.nu/scripts/util.js" type="text/javascript"></script>

</head>

<body>
<div id="main">

Posted by: Pixy Misa at 04:54 AM | No Comments | Add Comment
Post contains 290 words, total size 3 kb.

Comments are disabled. Post is locked.
10kb generated in CPU 0.0087, elapsed 0.0225 seconds.
29 queries taking 0.0157 seconds, 51 records returned.
Powered by Minx 1.1.6c-pink.