File: canonical.rb

package info (click to toggle)
tdiary-contrib 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,772 kB
  • sloc: ruby: 17,305; javascript: 8,263; lisp: 562; xml: 451; php: 61; sql: 40; makefile: 18
file content (9 lines) | stat: -rw-r--r-- 138 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
# canonical.rb

if /latest/ =~ @mode then
	add_header_proc do
		<<-HTML
		<link rel="canonical" href="#{@conf.base_url}">
		HTML
	end
end