作者 zhl

view

@@ -24,8 +24,12 @@ class Index extends Base @@ -24,8 +24,12 @@ class Index extends Base
24 */ 24 */
25 public function home() 25 public function home()
26 { 26 {
27 -  
28 - return view('v2/home'); 27 + $web = [
  28 + 'title' => 'Shopk.com',
  29 + 'keywords' => 'Shopk.com',
  30 + 'description' => 'Shopk.com',
  31 + ];
  32 + return view('v2/home', compact('web'));
29 } 33 }
30 34
31 35
@@ -38,7 +42,7 @@ class Index extends Base @@ -38,7 +42,7 @@ class Index extends Base
38 public function blog() 42 public function blog()
39 { 43 {
40 $web = [ 44 $web = [
41 - 'title' => 'blog', 45 + 'title' => 'blog - Shopk.com',
42 'keywords' => 'blog', 46 'keywords' => 'blog',
43 'description' => 'blog', 47 'description' => 'blog',
44 ]; 48 ];
@@ -73,7 +77,7 @@ class Index extends Base @@ -73,7 +77,7 @@ class Index extends Base
73 77
74 78
75 $web = [ 79 $web = [
76 - 'title' => $data['blog_title'], 80 + 'title' => $data['blog_title'] . ' - Shopk.com',
77 'keywords' => $data['blog_seo_keywords'] ?? $data['blog_title'], 81 'keywords' => $data['blog_seo_keywords'] ?? $data['blog_title'],
78 'description' => $data['blog_seo_description'] ?? $data['blog_title'], 82 'description' => $data['blog_seo_description'] ?? $data['blog_title'],
79 ]; 83 ];
@@ -100,7 +104,7 @@ class Index extends Base @@ -100,7 +104,7 @@ class Index extends Base
100 } 104 }
101 105
102 $web = [ 106 $web = [
103 - 'title' => $page['page_title'], 107 + 'title' => $page['page_title'] . ' - Shopk.com',
104 'keywords' => $page['page_seo_keywords'] ? implode(', ', $page['page_seo_keywords']) : $page['page_title'], 108 'keywords' => $page['page_seo_keywords'] ? implode(', ', $page['page_seo_keywords']) : $page['page_title'],
105 'description' => $page['page_seo_description'] ?? $page['page_title'], 109 'description' => $page['page_seo_description'] ?? $page['page_title'],
106 ]; 110 ];
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 </div> 31 </div>
32 @endif 32 @endif
33 <div class="item-text"> 33 <div class="item-text">
34 - {!! mb_substr(strip_tags($list['body']['blog_body']), 0, 400) !!} 34 + {!! mb_substr(strip_tags($list['body']['blog_body']), 0, 400) . (strlen(strip_tags($list['body']['blog_body'])) > 400 ? '......' : '') !!}
35 </div> 35 </div>
36 <div class="item-els flex_row"> 36 <div class="item-els flex_row">
37 <a href="/blog/{{$list['blog_id']}}" class="btn-learnmore item-more">read more</a> 37 <a href="/blog/{{$list['blog_id']}}" class="btn-learnmore item-more">read more</a>