SEO tweaks to type

master
Mark Moffat 2020-01-23 21:55:17 +10:30
parent 9390d5476e
commit 6141a41f16
1 changed files with 8 additions and 0 deletions

View File

@ -66,7 +66,11 @@
{{/if}} {{/if}}
<meta name="referrer" content="origin" /> <meta name="referrer" content="origin" />
<meta property="og:site_name" content="{{config.cartTitle}}" /> <meta property="og:site_name" content="{{config.cartTitle}}" />
{{#if result.productTitle}}
<meta property="og:type" content="product" />
{{else}}
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
{{/if}}
<meta property="og:title" content="{{title}}" /> <meta property="og:title" content="{{title}}" />
{{#if pageUrl}} {{#if pageUrl}}
<meta property="og:url" content="{{pageUrl}}" /> <meta property="og:url" content="{{pageUrl}}" />
@ -85,7 +89,11 @@
<meta property="og:description" content="{{snip config.cartDescription}}"> <meta property="og:description" content="{{snip config.cartDescription}}">
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if result.productTitle}}
<meta property="twitter:card" content="product" />
{{else}}
<meta property="twitter:card" content="summary" /> <meta property="twitter:card" content="summary" />
{{/if}}
<meta property="twitter:title" content="{{title}}" /> <meta property="twitter:title" content="{{title}}" />
{{#if pageUrl}} {{#if pageUrl}}
<meta property="twitter:url" content="{{pageUrl}}" /> <meta property="twitter:url" content="{{pageUrl}}" />