Skip to content

Commit

Permalink
[MXNET-506] Fix missing titles in certain pages (apache#11132)
Browse files Browse the repository at this point in the history
* Initial fix for absent titles, as in the case of gluon/index.html

* Remove the unnecessary tag

* Handling missing titles separately
  • Loading branch information
kpmurali authored and eric-haibin-lin committed Jun 5, 2018
1 parent 5dde19f commit a87de58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/_static/mxnet-theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@
must come *after* these tags. #}
{{ metatags }}
{%- block htmltitle %}
{%- if pagename != 'index' %}

{%- if pagename != 'index' and 'no title' not in title%}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{%- else %}
{%- elif pagename == 'index' %}
<title>MXNet: A Scalable Deep Learning Framework</title>
{%- else %}
<title>{{ pagename.split('/')[0]|capitalize }}{{ titlesuffix }}</title>
{%- endif %}
{%- endblock %}
{{ css() }}
Expand Down

0 comments on commit a87de58

Please sign in to comment.