Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
Fix ogp and twitter share image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Dec 1, 2016
1 parent 1a7adb3 commit 2e59229
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@
<meta name="twitter:title" content="{{ title }}" />

<!-- Switch by language -->
<!-- The ogp and twitter meta information prohibits relative url path. -->
{% if language == 'ja' %}
<meta name="description" content="Kobin(小瓶): Type Hintsを活用した軽量WSGIフレームワーク" />
<meta property="og:description" content="Kobin(小瓶): Type Hintsを活用した軽量WSGIフレームワーク" />
<meta name="twitter:description" content="Kobin(小瓶): Type Hintsを活用した軽量WSGIフレームワーク" />

<meta property="og:url" content="http://kobin.readthedocs.io/ja/latest/" />
<meta property="og:image" content="http://kobin.readthedocs.io/ja/latest/_images/ogp_ja.png" />
<meta name="twitter:image" content="http://kobin.readthedocs.io/ja/latest/_images/twitter_share_ja.png" />
<meta property="og:image" content="http://kobin.readthedocs.io/ja/latest/_static/ogp_ja.png" />
<meta name="twitter:image" content="http://kobin.readthedocs.io/ja/latest/_static/twitter_share_ja.png" />
{% else %} <!-- use en -->
<meta name="description" content="Kobin is a small and statically-typed WSGI micro web framework for Python3." />
<meta property="og:description" content="Kobin is a small and statically-typed WSGI micro web framework for Python3." />
<meta name="twitter:description" content="Kobin is a small and statically-typed WSGI micro web framework for Python3." />

<meta property="og:url" content="http://kobin.readthedocs.io/en/latest/" />
<meta property="og:image" content="http://kobin.readthedocs.io/en/latest/_images/ogp.png" />
<meta name="twitter:image" content="http://kobin.readthedocs.io/en/latest/_images/twitter_share.png" />
<meta property="og:image" content="http://kobin.readthedocs.io/en/latest/_static/ogp.png" />
<meta name="twitter:image" content="http://kobin.readthedocs.io/en/latest/_static/twitter_share.png" />
{% endif %}

<meta property="og:image:width" content="1200" />
Expand Down

0 comments on commit 2e59229

Please sign in to comment.