作者 zhl

view

... ... @@ -74,8 +74,8 @@ class Index extends Base
$web = [
'title' => $data['blog_title'],
'keywords' => $data['blog_seo_keywords'],
'description' => $data['blog_seo_description'],
'keywords' => $data['blog_seo_keywords'] ?? $data['blog_title'],
'description' => $data['blog_seo_description'] ?? $data['blog_title'],
];
return view('v2/blog/info',[
... ... @@ -101,8 +101,8 @@ class Index extends Base
$web = [
'title' => $page['page_title'],
'keywords' => implode(', ', $page['page_seo_keywords']),
'description' => $page['page_seo_description'],
'keywords' => $page['page_seo_keywords'] ? implode(', ', $page['page_seo_keywords']) : $page['page_title'],
'description' => $page['page_seo_description'] ?? $page['page_title'],
];
return view('v2/page', [
... ...
... ... @@ -31,7 +31,7 @@
</div>
@endif
<div class="item-text">
{!! $list['blog_seo_description'] !!}
{!! mb_substr(strip_tags($list['body']['blog_body']), 0, 400) !!}
</div>
<div class="item-els flex_row">
<a href="/blog/{{$list['blog_id']}}" class="btn-learnmore item-more">read more</a>
... ...