From bbbb2955849d750a8722db1f200cddc876dd2cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=84=E5=B0=98?= <122383162@qq.com> Date: Thu, 28 Jan 2021 17:50:17 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/category/jgsz.blade.php | 65 +++++++++++++++++-------- resources/views/index/index.blade.php | 8 +-- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/resources/views/category/jgsz.blade.php b/resources/views/category/jgsz.blade.php index f7cf146..fcb3c23 100644 --- a/resources/views/category/jgsz.blade.php +++ b/resources/views/category/jgsz.blade.php @@ -1,28 +1,53 @@ @extends('layouts.app') -@section('title', $article->title) - +@section('title', $category->title) @section('content') -
- -

{{ $article->title }}

- @if (in_array($parent->id,config('app.show_time'))) -

{{ $article->created_at }}

- @endif - -
- {{-- --}} - - {!! $article->content !!} -
- - @if ($next) -
- - 下一篇:{{ $next->title }} +
+ + + +
+ - @endif +
+ {{ getOneCategory(5,'title') }} + {{ getOneCategory(6,'title') }} + {{ getOneCategory(7,'title') }} + {{ getOneCategory(8,'title') }} + {{ getOneCategory(9,'title') }} +
+
    +
  • + {{ getOneCategory(37,'title') }} + + @if (getCateChild(37)->isNotEmpty()) + @foreach (getCateChild(37) as $child) + {{ $child->title }} + @endforeach + @endif +
  • +
  • + {{ getOneCategory(38,'title') }} + + @if (getCateChild(38)->isNotEmpty()) + @foreach (getCateChild(38) as $child) + {{ $child->title }} + @endforeach + @endif +
  • +
  • + {{ getOneCategory(39,'title') }} +
  • +
+ +
+ @endsection diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 052a4a7..ef0d287 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -41,10 +41,10 @@
- +