Fixed open graph tags

master
Mark Moffat 2020-01-23 21:47:25 +10:30
parent 7c9299f638
commit 9390d5476e
1 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{#if config.injectJs}}{{{config.injectJs}}}{{/if}}
{{~#if config.injectJs}}{{{config.injectJs}}}{{/if}}
<title>{{title}}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -77,20 +77,20 @@
<meta property="og:image" content="{{config.baseUrl}}{{result.productImage}}" />
{{/if}}
{{#if productDescription}}
<meta name="og:description" content="{{snip productDescription}}">
<meta property="og:description" content="{{snip productDescription}}">
{{else}}
{{#if metaDescription}}
<meta name="og:description" content="{{snip metaDescription}}">
<meta property="og:description" content="{{snip metaDescription}}">
{{else}}
<meta name="og:description" content="{{snip config.cartDescription}}">
<meta property="og:description" content="{{snip config.cartDescription}}">
{{/if}}
{{/if}}
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{title}}" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:title" content="{{title}}" />
{{#if pageUrl}}
<meta name="twitter:url" content="{{pageUrl}}" />
<meta property="twitter:url" content="{{pageUrl}}" />
{{else}}
<meta name="twitter:url" content="{{config.baseUrl}}" />
<meta property="twitter:url" content="{{config.baseUrl}}" />
{{/if}}
<script type="application/ld+json">
{
@ -101,8 +101,8 @@
}
</script>
<!-- SEO data -->
{{#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}}
{{#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}}
{{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}}
{{~#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}}
{{#if admin}}
<link rel="stylesheet" href="/stylesheets/admin{{config.env}}.css">
{{else}}