Skip to content

Commit 50ec30e

Browse files
committed
Add some OG image
See #443
1 parent 14cb546 commit 50ec30e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

_includes/header.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,21 @@
1313
<link rel="alternate" type="application/atom+xml" href="/atom.xml" title="Atom Feed">
1414

1515
<title>{{ page.title }} | WP-CLI</title>
16-
<meta name="description" content="{{ page.description }}">
16+
<meta name="description" content="{{ page.description | default: 'The command line interface for WordPress' }}">
17+
<meta property="og:type" content="website" />
18+
<meta property="og:title" content="{{ page.title | default: 'WP-CLI' }}" />
19+
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
20+
<meta property="og:description" content="{{ page.description | default: 'The command line interface for WordPress' }}" />
21+
<meta property="og:site_name" content="WP-CLI" />
22+
<meta property="og:image" content="{{ site.url }}/assets/img/wp-cli-og-image.png" />
23+
<meta property="og:image:alt" content="WP-CLI Logo" />
24+
<meta property="og:locale" content="en_US" />
25+
<meta name="twitter:site" content="@wpcli" />
26+
<meta name="twitter:title" content="{{ page.title | default: 'WP-CLI' }}" />
27+
<meta name="twitter:description" content="{{ page.description | default: 'The command line interface for WordPress' }}" />
28+
<meta name="twitter:image" content="{{ site.url }}/assets/img/wp-cli-og-image.png" />
29+
<meta name="twitter:card" content="summary_large_image" />
30+
1731

1832
{% for lang in site.languages %}<link rel="alternate" hreflang="{{lang.iso-alpha2}}" href="{{site.url}}{{lang.path}}" />
1933
{% endfor %}

assets/img/wp-cli-og-image.png

37.5 KB
Loading

0 commit comments

Comments
 (0)