Commit b78e33db by Dave St.Germain

This script and meta tag shouldn't be inside the title.

parent d06fbae8
...@@ -21,23 +21,25 @@ ...@@ -21,23 +21,25 @@
return getattr(settings, "THEME_NAME", None) == "stanford" return getattr(settings, "THEME_NAME", None) == "stanford"
%> %>
</%def> </%def>
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
<%def name="pagetitle()" />
<!DOCTYPE html> <!DOCTYPE html>
<!--[if IE 7]><html class="ie ie7 lte9 lte8 lte7" lang="${LANGUAGE_CODE}"><![endif]--> <!--[if IE 7]><html class="ie ie7 lte9 lte8 lte7" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if IE 8]><html class="ie ie8 lte9 lte8" lang="${LANGUAGE_CODE}"><![endif]--> <!--[if IE 8]><html class="ie ie8 lte9 lte8" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if IE 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]--> <!--[if IE 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if gt IE 9]><!--><html lang="${LANGUAGE_CODE}"><!--<![endif]--> <!--[if gt IE 9]><!--><html lang="${LANGUAGE_CODE}"><!--<![endif]-->
<head> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<%block name="title"> <%block name="title">
<title> <title>
% if stanford_theme_enabled(): % if stanford_theme_enabled():
${_("Home")} | class.stanford.edu ${_("Home")} | class.stanford.edu
% else: % else:
${page_title_breadcrumbs(self.pagetitle())} ${page_title_breadcrumbs(self.pagetitle())}
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case % endif
<!--<%block name="pagetitle" />--> </title>
</%block>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript"> <script type="text/javascript">
/* immediately break out of an iframe if coming from the marketing website */ /* immediately break out of an iframe if coming from the marketing website */
...@@ -47,10 +49,6 @@ ...@@ -47,10 +49,6 @@
} }
})(this); })(this);
</script> </script>
% endif
</title>
</%block>
<script type="text/javascript" src="/jsi18n/"></script> <script type="text/javascript" src="/jsi18n/"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment