@extends('frontend.layouts.app') @php use Illuminate\Support\Str; use Illuminate\Support\Facades\Storage; $title = $article->seo_title ?: $article->title; $description = $article->seo_description ?: $article->summary; $ogType = 'article'; $ogImage = $article->cover ? Storage::url($article->cover) : null; @endphp @push('head') @endpush @section('content')
{!! Str::markdown($article->content_md) !!}
@if($article->cover)
{{ $article->title }}
@endif

标签

@foreach($article->tags as $tag) {{ $tag->name }} @endforeach
@include('frontend.partials.ad-slot', ['slotKey' => 'detail', 'title' => '推广位'])

相关文章

@foreach($relatedArticles as $item)
{{ $item->title }}
@endforeach
@php $commentsEnabled = \App\Models\SiteSetting::value('comments_enabled', '1'); @endphp

评论

@if($commentsEnabled) @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
验证码
@forelse($comments as $comment)
{{ $comment->nickname }} {{ $comment->created_at->format('Y-m-d H:i') }}
{{ $comment->content }}
@csrf
@if($comment->reply_content)
官方回复:{{ $comment->reply_content }}
@endif
@empty
暂无评论
@endforelse
@else
评论已关闭
@endif
@endsection