diff --git a/public/assets/index/images/idxThree_img_03.jpg b/public/assets/index/images/idxThree_img_03.jpg new file mode 100644 index 0000000..b2bdd4b Binary files /dev/null and b/public/assets/index/images/idxThree_img_03.jpg differ diff --git a/public/assets/index/images/nys_banner.png b/public/assets/index/images/nys_banner.png new file mode 100644 index 0000000..307ebd0 Binary files /dev/null and b/public/assets/index/images/nys_banner.png differ diff --git a/resources/views/articles/index.blade.php b/resources/views/articles/index.blade.php new file mode 100644 index 0000000..090a437 --- /dev/null +++ b/resources/views/articles/index.blade.php @@ -0,0 +1,49 @@ +@extends('layouts.app') + +@section('title', '') +@section('keywords', $category->keywords) +@section('description', $category->description) + +@section('css') + +@endsection +@section('content') +
+
+ @include('layouts.left') +
+
+

{{ $category->title }}

+
首页 > {{ $category->title }} >
+
+
    + @foreach($articles as $article) +
  • cover)) class="noImg" @endif> +
    + +
    +
    + {{ $article->title }} +
    +
    {{ $article->description }}
    + {{-- 查看更多>> --}} + {{ $article->created_at }} +
    +
  • + @endforeach +
+
+ {{ $articles->links() }} +
+
+
+
+
+@endsection diff --git a/resources/views/articles/search.blade.php b/resources/views/articles/search.blade.php new file mode 100644 index 0000000..2971a28 --- /dev/null +++ b/resources/views/articles/search.blade.php @@ -0,0 +1,38 @@ +@extends('layouts.app') + +@section('title', '搜索结果') + + +@section('content') + +
+
+ 首页 + + 搜索结果 +
+ + + +
+ @if ($articles->isNotEmpty()) + {{ $articles->links('layouts.pagination') }} + @endif +
+
+ +@endsection diff --git a/resources/views/articles/show.blade.php b/resources/views/articles/show.blade.php index c71f2ce..7f819cb 100644 --- a/resources/views/articles/show.blade.php +++ b/resources/views/articles/show.blade.php @@ -23,8 +23,8 @@
-
{{ $category->title }}
- + + 您当前所在位置:首页 > @if ($category->id!=$parent->id) {{ $parent->title }} > @@ -33,12 +33,12 @@
-
{{ $article->title }}
-
发布时间:{{ $article->created_at->format('Y-m-d') }}
+
-{{-- @if ($article->cover)--}} - {{-- --}} - {{-- @endif--}} + @if ($article->cover) + + @endif {!! $article->content !!}
diff --git a/resources/views/category/show.blade.php b/resources/views/category/show.blade.php index b4853c9..7226036 100644 --- a/resources/views/category/show.blade.php +++ b/resources/views/category/show.blade.php @@ -46,6 +46,14 @@ @if ($articles->isNotEmpty()) {{ $articles->links('layouts.pagination') }} @endif + {{-- 上一页--}} + {{-- 1--}} + {{-- 2--}} + {{-- 3--}} + {{-- 4--}} + {{-- ...--}} + {{-- 100--}} + {{-- 下一页--}}
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 67b31d0..494e81c 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -8,15 +8,15 @@ - -
+ + @include('layouts.header') @@ -52,11 +52,12 @@
@@ -74,9 +75,9 @@
diff --git a/resources/views/layouts/header.blade.php b/resources/views/layouts/header.blade.php index 8c44946..4f54552 100644 --- a/resources/views/layouts/header.blade.php +++ b/resources/views/layouts/header.blade.php @@ -16,7 +16,7 @@ @endforeach @endif - +