about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-07 01:19:11 +0000
committerEric Wong <e@80x24.org>2016-01-07 01:33:37 +0000
commitc98abe82b6b3d16d5f9e32b4ecdb017eabcdd83e (patch)
tree7259cefb898e29bcc1994d35f8b7f926fd1cfcbf
parent73c6144ed3dc04a124d499fd19ca44c2ec5a13f7 (diff)
downloadolddoc-c98abe82b6b3d16d5f9e32b4ecdb017eabcdd83e.tar.gz
head: use old-style <meta> tags for compatibility
This wastes some bandwidth, but we are olddoc, after all,
and care about old browsers more than new ones.
-rw-r--r--lib/oldweb/_head.rhtml10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/oldweb/_head.rhtml b/lib/oldweb/_head.rhtml
index 9a9242c..ae4d5e9 100644
--- a/lib/oldweb/_head.rhtml
+++ b/lib/oldweb/_head.rhtml
@@ -1,7 +1,11 @@
-<meta charset="<%= @options.charset %>"><title><%= h @title %></title><%
-if rdoc_url = @old_cfg['rdoc_url'] %><link
+<title><%= h @title %></title><%
+if rdoc_url = @old_cfg['rdoc_url']
+%><link
 rel="alternate"
 title="Atom feed"
 href="<%= rdoc_url %>NEWS.atom.xml"
 type="application/atom+xml" /><%
-end %>
+end
+%><meta
+http-equiv="Content-Type"
+content="text/html; <%= @options.charset %>">