mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
Fixes #772 Проблемы SEO
This commit is contained in:
parent
46853650a1
commit
5febe4d7f2
|
@ -27,8 +27,10 @@
|
|||
*}
|
||||
{block 'topic_header'}
|
||||
<header class="{$component}-header">
|
||||
{$_headingTag = Config::Get('view.seo.topic_heading')}
|
||||
|
||||
{* Заголовок *}
|
||||
<h1 class="{$component}-title ls-word-wrap">
|
||||
<{$_headingTag} class="{$component}-title ls-word-wrap">
|
||||
{block 'topic_title'}
|
||||
{if $topic->getPublish() == 0}
|
||||
{component 'icon' icon='file' attributes=[ title => {lang 'topic.is_draft'} ]}
|
||||
|
@ -40,7 +42,7 @@
|
|||
{$topic->getTitle()|escape}
|
||||
{/if}
|
||||
{/block}
|
||||
</h1>
|
||||
</{$_headingTag}>
|
||||
|
||||
{* Информация *}
|
||||
<ul class="{$component}-info">
|
||||
|
|
|
@ -31,4 +31,11 @@ $config['head']['template']['css'] = array(
|
|||
"___path.skin.assets.web___/css/print.css"
|
||||
);
|
||||
|
||||
/**
|
||||
* SEO
|
||||
*/
|
||||
|
||||
// Тег используемый для заголовков топиков
|
||||
$config['view']['seo']['topic_heading'] = 'h2';
|
||||
|
||||
return $config;
|
|
@ -26,8 +26,10 @@
|
|||
* Хидер
|
||||
*}
|
||||
<header class="{$component}-header">
|
||||
{$_headingTag = Config::Get('view.seo.topic_heading')}
|
||||
|
||||
{* Заголовок *}
|
||||
<h1 class="{$component}-title ls-word-wrap">
|
||||
<{$_headingTag} class="{$component}-title ls-word-wrap">
|
||||
{block 'topic_title'}
|
||||
{if $topic->getPublish() == 0}
|
||||
{component 'syn-icon' icon='draft' attributes=[ title => {lang 'topic.is_draft'} ]}
|
||||
|
@ -39,7 +41,7 @@
|
|||
{$topic->getTitle()|escape}
|
||||
{/if}
|
||||
{/block}
|
||||
</h1>
|
||||
</{$_headingTag}>
|
||||
|
||||
{* Блоги *}
|
||||
{$_blogs = []}
|
||||
|
|
|
@ -72,8 +72,15 @@ $config['head']['template']['js'] = array(
|
|||
|
||||
// Подключение стилей шаблона
|
||||
$config['head']['template']['css'] = array(
|
||||
"___path.skin.assets.web___/css/layout.css",
|
||||
"___path.skin.assets.web___/css/print.css"
|
||||
"___path.skin.assets.web___/css/layout.css",
|
||||
"___path.skin.assets.web___/css/print.css"
|
||||
);
|
||||
|
||||
/**
|
||||
* SEO
|
||||
*/
|
||||
|
||||
// Тег используемый для заголовков топиков
|
||||
$config['view']['seo']['topic_heading'] = 'h2';
|
||||
|
||||
return $config;
|
Loading…
Reference in a new issue