mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Add meta description for posts
This commit is contained in:
parent
9da7855926
commit
6413a5c5a4
1 changed files with 14 additions and 9 deletions
|
@ -1,16 +1,21 @@
|
||||||
{extends "../@layout.xml"}
|
{extends "../@layout.xml"}
|
||||||
{block title}{_"post"}{/block}
|
{block title}{_"post"}{/block}
|
||||||
|
|
||||||
|
{block headIncludes}
|
||||||
|
{var $description = iconv_substr(strip_tags($post->getText()), 0, 96)}
|
||||||
|
<meta n:if="!empty($description)" name="description" content="{$post->getOwner()->getCanonicalName()} {$post->getPublicationTime()}— {$description}" />
|
||||||
|
{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
<a href="{$wallOwner->getURL()}">
|
<a href="{$wallOwner->getURL()}">
|
||||||
{$wallOwner->getCanonicalName()}
|
{$wallOwner->getCanonicalName()}
|
||||||
</a>
|
</a>
|
||||||
»
|
»
|
||||||
<a href="/wall{$wallOwner->getId() * ($isWallOfGroup ? -1 : 1)}">
|
<a href="/wall{$wallOwner->getId() * ($isWallOfGroup ? -1 : 1)}">
|
||||||
{_wall}
|
{_wall}
|
||||||
</a>
|
</a>
|
||||||
»
|
»
|
||||||
{_"post"}
|
{_"post"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
|
|
Loading…
Reference in a new issue