Skip to content

Commit b0a35dd

Browse files
author
exoego
committed
add twitter card/ogp
1 parent d492eda commit b0a35dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_includes/headertop.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
1313
<meta name="viewport" content="width=device-width, initial-scale=1">
1414

15+
<meta property="og:site_name" content="{{ site.title }}"/>
16+
{% if page.title %}<meta property="og:title" content="{{ page.title }}"/>{% endif %}
17+
{% if page.description %}<meta property="og:description" content="{{ page.description }}"{% endif %}
18+
19+
<meta name="twitter:card" content="summary"/>
20+
<meta name="twitter:site" content="@scala_lang"/>
21+
<meta name="twitter:creator" content="@scala_lang"/>
22+
{% if page.title %}<meta property="twitter:title" content="{{ page.title }}"/>{% endif %}
23+
{% if page.description %}<meta property="twitter:description" content="{{ page.description }}"{% endif %}
24+
1525
<link rel="icon" type="image/png" href="{{ site.baseurl }}/resources/favicon.ico">
1626
<link rel="shortcut icon" type="image/png" href="{{ site.baseurl }}/resources/favicon.ico">
1727
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/resources/apple-touch-icon.png">

0 commit comments

Comments
 (0)