Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add proper title tags (closes #20)

  • Loading branch information...
commit bb0e09edb1214db41906911083bb6f56c451ec64 1 parent 26dd66b
@judofyr authored
Showing with 9 additions and 1 deletion.
  1. +4 −0 timeless.rb
  2. +5 −1 timeless/views/layout.haml
View
4 timeless.rb
@@ -75,6 +75,8 @@ def get(id)
end
end
end
+
+ def title; @change.title; end
end
class Feed < R '/changelog\.xml'
@@ -97,6 +99,8 @@ def get(name)
render :entry
end
end
+
+ def title; @entry.title; end
end
end
View
6 timeless/views/layout.haml
@@ -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)}
Please sign in to comment.
Something went wrong with that request. Please try again.