This script and meta tag shouldn't be inside the title.
This commit is contained in:
@@ -21,37 +21,35 @@
|
||||
return getattr(settings, "THEME_NAME", None) == "stanford"
|
||||
%>
|
||||
</%def>
|
||||
|
||||
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
|
||||
<%def name="pagetitle()" />
|
||||
<!DOCTYPE html>
|
||||
<!--[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 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
|
||||
<!--[if gt IE 9]><!--><html lang="${LANGUAGE_CODE}"><!--<![endif]-->
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<%block name="title">
|
||||
<title>
|
||||
% if stanford_theme_enabled():
|
||||
${_("Home")} | class.stanford.edu
|
||||
% else:
|
||||
${page_title_breadcrumbs(self.pagetitle())}
|
||||
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
|
||||
<!--<%block name="pagetitle" />-->
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<script type="text/javascript">
|
||||
/* immediately break out of an iframe if coming from the marketing website */
|
||||
(function(window) {
|
||||
if (window.location !== window.top.location) {
|
||||
window.top.location = window.location;
|
||||
}
|
||||
})(this);
|
||||
</script>
|
||||
% endif
|
||||
</title>
|
||||
|
||||
</%block>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* immediately break out of an iframe if coming from the marketing website */
|
||||
(function(window) {
|
||||
if (window.location !== window.top.location) {
|
||||
window.top.location = window.location;
|
||||
}
|
||||
})(this);
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="/jsi18n/"></script>
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="${static.url(MicrositeConfiguration.get_microsite_configuration_value('favicon_path', settings.FAVICON_PATH))}" />
|
||||
|
||||
Reference in New Issue
Block a user