limit for seo

This commit is contained in:
vedatakd 2020-06-22 12:17:47 +03:00
parent ca14c5c654
commit 2b3d78464e
2 changed files with 8 additions and 8 deletions

View File

@ -4,16 +4,16 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="{{ setting_value('streams::description') }}"/>
<meta name="description" content="{{ setting_value('streams::description')|slice(0,160) }}"/>
<!-- Meta Tags -->
<title>
{% set title = trans(template.meta_title) %}
{% set showTitle = template.showTitle is same as(false) ? false : true %}
{% if showTitle %}
{{ setting_value('streams::name', config_get('streams::distribution.name')) }}
&#8250;
{% set title = setting_value('streams::name', config_get('streams::distribution.name'))~"|"~trans(template.meta_title) %}
{% endif %}
{{ trans(template.meta_title) }}
{{ title|slice(0,60) }}
</title>
{% include "visiosoft.theme.base::partials/ogdata" %}

View File

@ -1,8 +1,8 @@
{% block ogdata %}
<meta property="og:site_name"
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description)) }}"/>
<meta property="og:title" content="{{ template.get('og_title', trans(template.meta_title)) }}"/>
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}"/>
<meta property="og:title" content="{{ template.get('og_title', trans(template.meta_title))|slice(0,60) }}"/>
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
<meta property="og:image" content="{{ template.get('og_image', trans(template.meta_image)) }}"/>
<meta property="og:type" content="website"/>
@ -10,7 +10,7 @@
<!-- Meta for twitter sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}">
<meta name="twitter:title" content="{{ template.get('og_title', trans(template.meta_title)) }}">
<meta name="twitter:description" content="{{ template.get('og_description', trans(template.meta_description)) }}">
<meta name="twitter:title" content="{{ template.get('og_title', trans(template.meta_title))|slice(0,60) }}">
<meta name="twitter:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}">
<meta name="twitter:image" content="{{ template.get('og_image', trans(template.meta_image)) }}">
{% endblock %}