You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/06/05 17:49:49 UTC

[GitHub] eric-haibin-lin closed pull request #11132: [MXNET-506] Fix missing titles in certain pages

eric-haibin-lin closed pull request #11132: [MXNET-506] Fix missing titles in certain pages
URL: https://github.com/apache/incubator-mxnet/pull/11132
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/_static/mxnet-theme/layout.html b/docs/_static/mxnet-theme/layout.html
index 653f5d79161..3028342abd5 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() }}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services