Good SEO (Search Engine Optimization) is key to ensuring your website ranks high on the search results of sites like Google and Bing.

Syngency uses a number of best-practices for maintaining high SEO behind the scenes, but you can further customize your search keywords and meta descriptions
using some simple Liquid control flow tags website templates.

Remember, Syngency uses the same Liquid template tags that Shopify does, and they have a great resources on what you can do with Liquid, and most relevant to this article, how control flow tags work.

Here's an example to get you started – it should appear at the top of your Master website template: 

{% assign metaDesc = '' %}

{% case template %}
    {% when 'home' %}

    {% when 'page' %}
        {% if page.meta_title %}
            {% assign pageTitle = page.meta_title %}
        {% else %}
            {% assign pageTitle = page.title %}
        {% endif %}
        {% if page.meta_description %}
            {% assign metaDesc = page.meta_description %}
        {% endif %}

    {% when 'division' %}

    {% when 'model' %}

    {% when 'post' %}

    {% when 'model_submission' %}

    {% else %}
         {% assign metaTitle = page_name %}
{% endcase %}

{% assign metaTitle = pageTitle | append: ' | ' | append: agency.name %}

<!DOCTYPE html>
<html>
<head>
<title>{{ metaTitle }}</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ metaDesc }}" />
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ metaTitle }}">
<meta property="og:description" content="{{ metaDesc }}">
<meta property="og:url" content="{{ agency.url }}">
<meta property="og:site_name" content="{{ agency.name }}">
{% if template == 'model' %}
  <link rel="canonical" href="{{ agency.url }}{{ model.url }}" />
{% endif %}
{{ content_for_header }}
</head>
Did this answer your question?