Skip to content

Commit 545afc0

Browse files
committed
Tweak OG title & description
1 parent 50ec30e commit 545afc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_includes/header.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
<link rel="shortcut icon" href="/assets/img/favicon.jpg" />
1313
<link rel="alternate" type="application/atom+xml" href="/atom.xml" title="Atom Feed">
1414

15-
<title>{{ page.title }} | WP-CLI</title>
16-
<meta name="description" content="{{ page.description | default: 'The command line interface for WordPress' }}">
15+
<title>{% if page.title == "WP-CLI" or page.title == nil %}WP-CLI - The command line interface for WordPress{% else %}{{ page.title }} | WP-CLI{% endif %}</title>
16+
<meta name="description" content="{{ page.description | default: 'WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.' }}">
1717
<meta property="og:type" content="website" />
18-
<meta property="og:title" content="{{ page.title | default: 'WP-CLI' }}" />
18+
<meta property="og:title" content="{% if page.title == "WP-CLI" or page.title == nil %}WP-CLI - The command line interface for WordPress{% else %}{{ page.title }}{% endif %}" />
1919
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
20-
<meta property="og:description" content="{{ page.description | default: 'The command line interface for WordPress' }}" />
20+
<meta property="og:description" content="{{ page.description | default: 'WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.' }}" />
2121
<meta property="og:site_name" content="WP-CLI" />
2222
<meta property="og:image" content="{{ site.url }}/assets/img/wp-cli-og-image.png" />
2323
<meta property="og:image:alt" content="WP-CLI Logo" />
2424
<meta property="og:locale" content="en_US" />
2525
<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' }}" />
26+
<meta name="twitter:title" content="{% if page.title == "WP-CLI" or page.title == nil %}WP-CLI - The command line interface for WordPress{% else %}{{ page.title }}{% endif %}" />
27+
<meta name="twitter:description" content="{{ page.description | default: 'WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.' }}" />
2828
<meta name="twitter:image" content="{{ site.url }}/assets/img/wp-cli-og-image.png" />
2929
<meta name="twitter:card" content="summary_large_image" />
3030

0 commit comments

Comments
 (0)