Skip to content

Commit

Permalink
Add proper title tags (closes judofyr#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed Oct 4, 2010
1 parent 26dd66b commit bb0e09e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions timeless.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def get(id)
end
end
end

def title; @change.title; end
end

class Feed < R '/changelog\.xml'
Expand All @@ -97,6 +99,8 @@ def get(name)
render :entry
end
end

def title; @entry.title; end
end
end

Expand Down
6 changes: 5 additions & 1 deletion timeless/views/layout.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
!!!
%head
%meta(charset="utf-8")
%title Timeless from Magnus Holm
%title
- if respond_to?(:title)
= title
Timeless from Magnus Holm
/[if lt IE 9]
%script(src="http://html5shim.googlecode.com/svn/trunk/html5.js")
%link{:rel => "stylesheet", :href => R(Stylesheet)}
Expand Down

0 comments on commit bb0e09e

Please sign in to comment.