Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove duplicate <body> tags
I don’t see the reason why double `<body>` tags were needed. I am removing them for now.
  • Loading branch information
Michaël Perrin committed Jan 28, 2017
commit c3780f38237b6963e90276bd017deb60565cb05a
5 changes: 2 additions & 3 deletions _build/_theme/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
{% endblock %}

{% block header %}
{# ugly way, now we have 2 body tags, but styles rely on these classes #}
<body class="{{ pagename|get_type }} {% if isIndex %}doc_index{% else %}doc_article{% endif %} doc">
<div class="{{ pagename|get_type }} {% if isIndex %}doc_index{% else %}doc_article{% endif %} doc">
{% endblock %}

{% block content %}
Expand Down Expand Up @@ -97,4 +96,4 @@ <h1 class="content_title">{{ title }}</h1>
{% block relbar2 %}{% endblock %}

{# remove "generated by sphinx" footer #}
{% block footer %}</body>{% endblock %}
{% block footer %}</div>{% endblock %}