This is an automated email from the ASF dual-hosted git repository.
indhub 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 60d7090 [MXNET-521] Add Facebook open-graph tag integration (#11155)
60d7090 is described below
commit 60d7090bd144de705e403c6990f4855a11a73558
Author: kpmurali <[email protected]>
AuthorDate: Wed Jun 13 23:29:32 2018 -0700
[MXNET-521] Add Facebook open-graph tag integration (#11155)
* Adding the first set of Facebook OG tags to layout.html
* Adding the direct link to the Facebook OG image
* Re-arranging the og description tag
* Changes to fix merge conflicts
* Adding secure_url to the og:image tag
* Adding the redundant og:image tag
---
docs/_static/mxnet-theme/layout.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/docs/_static/mxnet-theme/layout.html
b/docs/_static/mxnet-theme/layout.html
index 3028342..d72582c 100644
--- a/docs/_static/mxnet-theme/layout.html
+++ b/docs/_static/mxnet-theme/layout.html
@@ -102,11 +102,17 @@
must come *after* these tags. #}
{{ metatags }}
{%- block htmltitle %}
- {%- if pagename != 'index' and 'no title' not in title%}
+ <meta property="og:title" content="{{ title }}" />
+ <meta property="og:image"
content="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/og-logo.png"
/>
+ <meta property="og:image:secure_url"
content="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/og-logo.png"
/>
+ {%- if pagename != 'index' and 'no title' not in title %}
+ <meta property="og:description" content="{{ title }}" />
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{%- elif pagename == 'index' %}
+ <meta property="og:description" content="A flexible and efficient
library for deep learning." />
<title>MXNet: A Scalable Deep Learning Framework</title>
{%- else %}
+ <meta property="og:description" content="A flexible and efficient
library for deep learning." />
<title>{{ pagename.split('/')[0]|capitalize }}{{ titlesuffix }}</title>
{%- endif %}
{%- endblock %}
--
To stop receiving notification emails like this one, please contact
[email protected].