Site: Add a page title in the header

This commit is contained in:
Pieter de Bie
2008-12-01 13:19:23 +01:00
parent 0b65b54f7f
commit 578edf879e
8 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -7,7 +7,7 @@ end
<html>
<head>
<title>
GitX
GitX - <%= @title %>
</title>
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="Main Style" charset="utf-8" />
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
@@ -37,7 +37,7 @@ end
<a href="#">About</a>
</div> -->
<div id="content">
<%= body %>
<%= @body %>
</div>
<div id="footer">
© Some rights reserved. <a href="http://github.com/pieter/gitx/tree/master/COPYING" title="GPL">GPL v2</a>. <a href="mailto:frimmirf+gitx@gmail.com">Pieter de Bie</a> is the GitX maintainer. Website design by <a href="http://www.ai.rug.nl/~kdoes/index.php?id=webdesign">Kim Does</a>.
+1
View File
@@ -1,3 +1,4 @@
<% @title = "Contact" %>
Contact
-------
+1
View File
@@ -1,3 +1,4 @@
<% @title = "Contribute" %>
<h2>
Contribute
</h2>
+1
View File
@@ -1,3 +1,4 @@
<% @title = "Home" %>
<div class="nohover" id="download">
<a href="http://frim.frim.nl/GitXStable.app.zip" title="Latest GitX download" id="download_link" class="nohover">
Download GitX
+1
View File
@@ -1,3 +1,4 @@
<% @title = "Links" %>
<h2>
Links
</h2>
+1
View File
@@ -1,3 +1,4 @@
<% @title = "Release History" %>
<h2>
Release history
</h2>
+1
View File
@@ -1,3 +1,4 @@
<% @title = "See It" %>
<script type="text/javascript" charset="utf-8">
var screenshots = screenshots = [["The Commit View", 892], ["The History View", 891]];