作者 zhl

view

... ... @@ -24,8 +24,12 @@ class Index extends Base
*/
public function home()
{
return view('v2/home');
$web = [
'title' => 'Shopk.com',
'keywords' => 'Shopk.com',
'description' => 'Shopk.com',
];
return view('v2/home', compact('web'));
}
... ... @@ -38,7 +42,7 @@ class Index extends Base
public function blog()
{
$web = [
'title' => 'blog',
'title' => 'blog - Shopk.com',
'keywords' => 'blog',
'description' => 'blog',
];
... ... @@ -73,7 +77,7 @@ class Index extends Base
$web = [
'title' => $data['blog_title'],
'title' => $data['blog_title'] . ' - Shopk.com',
'keywords' => $data['blog_seo_keywords'] ?? $data['blog_title'],
'description' => $data['blog_seo_description'] ?? $data['blog_title'],
];
... ... @@ -100,7 +104,7 @@ class Index extends Base
}
$web = [
'title' => $page['page_title'],
'title' => $page['page_title'] . ' - Shopk.com',
'keywords' => $page['page_seo_keywords'] ? implode(', ', $page['page_seo_keywords']) : $page['page_title'],
'description' => $page['page_seo_description'] ?? $page['page_title'],
];
... ...
... ... @@ -31,7 +31,7 @@
</div>
@endif
<div class="item-text">
{!! mb_substr(strip_tags($list['body']['blog_body']), 0, 400) !!}
{!! mb_substr(strip_tags($list['body']['blog_body']), 0, 400) . (strlen(strip_tags($list['body']['blog_body'])) > 400 ? '......' : '') !!}
</div>
<div class="item-els flex_row">
<a href="/blog/{{$list['blog_id']}}" class="btn-learnmore item-more">read more</a>
... ...