Kriuchko
8/19/2019 - 11:20 AM

SEO

\!h Sitemap
https://support.bigcommerce.com/s/article/Sitemaps

\!h robots.txt
https://support.bigcommerce.com/s/article/Understanding-the-Robots-txt-File

\!h base.html og tags open graph tags

<!DOCTYPE html>
<html class="no-js" lang="{{ locale_name }}">
    <head>
        <title>{{head.title}}</title>
        
        {{{ resourceHints }}}
        {{{ head.meta_tags }}}
        
        {{#if this.template '!=' 'pages/product'}}
            <meta property="og:title" content="{{head.title}}">
            <meta property="og:site_name" content="DeBra’s">

            {{#if this.template '==' 'pages/category'}}
                <meta property="og:url" content="{{category.url}}">
            {{else if this.template '==' 'pages/home'}}
                <meta property="og:url" content="https://debras.mybigcommerce.com">
            {{else if this.template '==' 'pages/blog'}}
                <meta property="og:url" content="{{blog.url}}">
            {{else if this.template '==' 'pages/blog-post'}}
                <meta property="og:url" content="{{this.blog.post.url}}">
            {{else if this.template '==' 'pages/page'}}
                {{#each pages as |somepage|}}
                    {{#if somepage.name '==' ../page.title}}
                        <meta property="og:url" content="{{somepage.url}}">
                    {{/if}}
                {{/each}}
            {{else}}
                <meta property="og:url" content="https://debras.mybigcommerce.com">
            {{/if}}
            
            {{#if category.description}}
                <meta property="og:description" content="{{sanitize category.description}}">
            {{else}}
                <meta property="og:description" content="DeBra’s stock a wide range of bras, lingerie, maternity & swimwear available online and in-store. Over 15years experience in the industry - visit us today!">
            {{/if}}
            <meta property="og:type" content="website">
            
            {{#if category.image}}
                <meta property="og:image" content="{{getImage category.image 'zoom_size'}}">
            {{else}}
                <meta property="og:image" content="{{getImage settings.store_logo.image 'logo_size'}}">
            {{/if}}
        {{/if}}
        
        {{{ head.config }}}
        {{#block "head"}} {{/block}}