mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Site: Add a page title in the header
This commit is contained in:
+1
-1
@@ -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
@@ -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,3 +1,4 @@
|
||||
<% @title = "Contact" %>
|
||||
Contact
|
||||
-------
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<% @title = "Contribute" %>
|
||||
<h2>
|
||||
Contribute
|
||||
</h2>
|
||||
|
||||
@@ -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,3 +1,4 @@
|
||||
<% @title = "Links" %>
|
||||
<h2>
|
||||
Links
|
||||
</h2>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<% @title = "Release History" %>
|
||||
<h2>
|
||||
Release history
|
||||
</h2>
|
||||
|
||||
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user