From 6413a5c5a456cb152e8f6c9ffb015af4fb002b49 Mon Sep 17 00:00:00 2001 From: Celestora Date: Sat, 18 Jun 2022 15:03:08 +0300 Subject: [PATCH] Add meta description for posts --- Web/Presenters/templates/Wall/Post.xml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Web/Presenters/templates/Wall/Post.xml b/Web/Presenters/templates/Wall/Post.xml index ed2b5559..4c8bb57d 100644 --- a/Web/Presenters/templates/Wall/Post.xml +++ b/Web/Presenters/templates/Wall/Post.xml @@ -1,16 +1,21 @@ {extends "../@layout.xml"} {block title}{_"post"}{/block} +{block headIncludes} + {var $description = iconv_substr(strip_tags($post->getText()), 0, 96)} + +{/block} + {block header} - - {$wallOwner->getCanonicalName()} - - » - - {_wall} - - » - {_"post"} + + {$wallOwner->getCanonicalName()} + + » + + {_wall} + + » + {_"post"} {/block} {block content}