Skip to content

Instantly share code, notes, and snippets.

@Sentinel-7
Created August 21, 2017 07:36
Show Gist options
  • Save Sentinel-7/74b41ef55415adc9c6cf6533b9e91731 to your computer and use it in GitHub Desktop.
Save Sentinel-7/74b41ef55415adc9c6cf6533b9e91731 to your computer and use it in GitHub Desktop.
Чанк head
<title itemprop="name">
{if $_modx->resource.seotitle == ''}
{$_modx->resource.pagetitle}{if $_modx->config.name_title == 1}{$_modx->config.separator_title}{$_modx->config.site_name}{/if}
{else}
{$_modx->resource.seotitle}{if $_modx->config.name_title == 1}{$_modx->config.separator_title}{$_modx->config.site_name}{/if}
{/if}
</title>
{if $_modx->resource.seokeywords != ''}<meta name="keywords" content="{$_modx->resource.seokeywords}">{/if}
{if $_modx->resource.seodescription != ''}<meta name="description" content="{$_modx->resource.seodescription}">{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment