From 6f23dc531a5dfbde3bbc5d15e412908747d41063 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Tue, 29 May 2007 10:48:41 -0700
Subject: [PATCH] se meta plugin for titles instead of just h1 tags

This eliminates the doubled-up titles I had before on every
inlined page. The reason I hadn't done this originally is that
I didn't want the title to appear on the main page. I've fixed
that now with a little suppresstitle hack in the ikiwiki source,
(should do a customizable template feature instead to be able
to push something upstream).
---
 src/anikas_traveling_turtle.mdwn      | 2 +-
 src/exa/understanding_rectangles.mdwn | 4 ++--
 templates/page.tmpl                   | 5 +++++
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/anikas_traveling_turtle.mdwn b/src/anikas_traveling_turtle.mdwn
index cf2e2ae..519a4ca 100644
--- a/src/anikas_traveling_turtle.mdwn
+++ b/src/anikas_traveling_turtle.mdwn
@@ -1,7 +1,7 @@
+[[meta title="Anika's Traveling Turtle"]]
 [[tag family]]
 
 [[img cover.jpg size="300x300" class="floatright"]]
-# Anika's Traveling Turtle
 
 Confession time.
 
diff --git a/src/exa/understanding_rectangles.mdwn b/src/exa/understanding_rectangles.mdwn
index 5973620..8c92fc4 100644
--- a/src/exa/understanding_rectangles.mdwn
+++ b/src/exa/understanding_rectangles.mdwn
@@ -1,6 +1,6 @@
-[[tag cairo exa xorg]]
+[[meta title="Understanding the cairo rectangles performance test case"]]
 
-# Understanding the cairo rectangles performance test case
+[[tag cairo exa xorg]]
 
 About a month ago (can it have been that long already?) I started an
 effort to try to [baseline EXA performance on an r100
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 9ff833a..b675911 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -18,6 +18,11 @@
 <div id="logo">
   <img alt="Carl Worth" src="/cworth-banner.png">
 </div>
+<TMPL_UNLESS NAME="SUPPRESSTITLE">
+<span>
+<TMPL_VAR TITLE>
+</span>
+</TMPL_UNLESS>
 <TMPL_IF NAME="SEARCHFORM">
 <TMPL_VAR SEARCHFORM>
 </TMPL_IF>
-- 
2.45.2