作者 zhl

'view'

... ... @@ -99,7 +99,16 @@ class Index extends Base
Fun::abort();
}
return view('v2/page',$page);
$web = [
'title' => $page['page_title'],
'keywords' => $page['page_seo_keywords'],
'description' => $page['page_seo_description'],
];
return view('v2/page', [
'data' => $page,
'web' => $web
]);
}
... ...
... ... @@ -5,7 +5,7 @@
<!-- sys_sub_head -->
<section class="sys_sub_head">
<div class="page-title-bar">
<h2 class="title">{{$page_title}}</h2>
<h2 class="title">{{$data['page_title']}}</h2>
</div>
</section>
... ... @@ -13,10 +13,10 @@
<section class="web_main page_main">
<div class="layout">
<div class="blog-item">
<h2 class="item-title blog-title">{{$page_title}}</h2>
{{--<h2 class="item-title blog-title">{{$data['page_title']}}</h2>--}}
<article class="blog-article">
{!! $page_body !!}
{!! $data['page_body'] !!}
</article>
</div>
... ...