From 578edf879e950c8474c624a769da57a086f2f843 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Mon, 1 Dec 2008 13:19:23 +0100 Subject: [PATCH] Site: Add a page title in the header --- Site/Rakefile | 2 +- Site/template.html | 4 ++-- Site/text/contact.markdown | 1 + Site/text/contribute.markdown | 1 + Site/text/index.markdown | 1 + Site/text/links.markdown | 1 + Site/text/release_history.markdown | 1 + Site/text/seeit.markdown | 1 + 8 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Site/Rakefile b/Site/Rakefile index 127dc9f..76fc317 100644 --- a/Site/Rakefile +++ b/Site/Rakefile @@ -12,7 +12,7 @@ task :generate => [:generate_usermanual] do source = Dir.glob("text/*.markdown").each do |file| contents = File.read(file) - body = Markdown.new(contents).to_html + @body = Markdown.new(ERB.new(contents).result(binding)).to_html @filename = File.basename(file).gsub(/markdown$/,"html") File.open("output/" + @filename, "w") do |f| f.puts template.result(binding) diff --git a/Site/template.html b/Site/template.html index c104882..c1001b6 100644 --- a/Site/template.html +++ b/Site/template.html @@ -7,7 +7,7 @@ end - GitX + GitX - <%= @title %> @@ -37,7 +37,7 @@ end About -->
-<%= body %> + <%= @body %>