You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ha...@apache.org on 2018/06/05 17:49:54 UTC
[incubator-mxnet] branch master updated: [MXNET-506] Fix missing
titles in certain pages (#11132)
This is an automated email from the ASF dual-hosted git repository.
haibin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new a87de58 [MXNET-506] Fix missing titles in certain pages (#11132)
a87de58 is described below
commit a87de58fcb0369a74d8b6af3ae15509c5145018f
Author: kpmurali <37...@users.noreply.github.com>
AuthorDate: Tue Jun 5 10:49:47 2018 -0700
[MXNET-506] Fix missing titles in certain pages (#11132)
* Initial fix for absent titles, as in the case of gluon/index.html
* Remove the unnecessary tag
* Handling missing titles separately
---
docs/_static/mxnet-theme/layout.html | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/_static/mxnet-theme/layout.html b/docs/_static/mxnet-theme/layout.html
index 653f5d7..3028342 100644
--- a/docs/_static/mxnet-theme/layout.html
+++ b/docs/_static/mxnet-theme/layout.html
@@ -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() }}
--
To stop receiving notification emails like this one, please contact
haibin@apache.org.