1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

Fix twitter cards

This commit is contained in:
Shidong Wang 2020-05-17 11:49:34 +08:00
parent f2ed183235
commit bb2576a305

View File

@ -15,10 +15,19 @@
<meta property="og:title" content="{{ page.title }} | SpaceVim" /> <meta property="og:title" content="{{ page.title }} | SpaceVim" />
<meta property="og:description" content="{{ page.description }}" /> <meta property="og:description" content="{{ page.description }}" />
<meta property="og:url" content="{{ site.url }}{{ page.url }}" /> <meta property="og:url" content="{{ site.url }}{{ page.url }}" />
<meta property="og:image" content="{{ page.image | default: site.image }}" /> <meta
property="og:image"
content="{{ page.image | default: site.image }}"
/>
<meta property="twitter:card" content="summary_large_image" /> <meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:site" content="@SpaceVim" /> <meta property="twitter:site" content="@SpaceVim" />
<meta property="twitter:creator" content="@wsdtty" /> <meta property="twitter:creator" content="@wsdtty" />
<meta
name="twitter:image:src"
content="{{ page.image | default: site.image }}"
/>
<meta name="twitter:title" content="{{ page.title }} | SpaceVim" />
<meta name="twitter:description" content="{{ page.description }}" />
{% if page.lang == "zh" %} {% if page.lang == "zh" %}
<script <script
type="text/javascript" type="text/javascript"