Commit 51e6d5fb by Jason Bau

Merge pull request #2386 from edx/jbau/fix-title-stanford-theme

fix main.html template -- <title> was eating everything
parents 77ac4158 7399d517
...@@ -21,24 +21,21 @@ ...@@ -21,24 +21,21 @@
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():
${_("Home")} | class.stanford.edu
% else:
${page_title_breadcrumbs(self.pagetitle())} ${page_title_breadcrumbs(self.pagetitle())}
</title> </title>
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case </%block>
<!--<%block name="pagetitle" />-->
<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 */
...@@ -48,8 +45,6 @@ ...@@ -48,8 +45,6 @@
} }
})(this); })(this);
</script> </script>
% endif
</%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