From 41353e8208bd868df8442d5ae6a30ecad6dc2e0d Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Wed, 17 Sep 2025 15:17:39 +0200 Subject: [PATCH] feat: move breadcrumb above news title --- .gitignore | 3 ++ resources/views/fo/layout.blade.php | 4 +-- resources/views/fo/pages/news/post.blade.php | 31 ++++++++++++-------- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index e00c845..ac19178 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,9 @@ Homestead.yaml npm-debug.log yarn-error.log .npmrc +.zshrc +.npm/ +.composer/ # Ignore public favicon /public/android-chrome-192x192.png diff --git a/resources/views/fo/layout.blade.php b/resources/views/fo/layout.blade.php index d8565c8..eb7aedb 100644 --- a/resources/views/fo/layout.blade.php +++ b/resources/views/fo/layout.blade.php @@ -26,11 +26,9 @@ @if ( !is_null(request()->route()) && !in_array(request()->route()->getName(), - ['fo.homepage', 'fo.tips.show', 'fo.recipes.show'])) + ['fo.homepage', 'fo.tips.show', 'fo.recipes.show', 'fo.news.show'])) @if (request()->route()->getName() == 'fo.product.show')
- @elseif (request()->route()->getName() == 'fo.news.show') -
@else
@endif diff --git a/resources/views/fo/pages/news/post.blade.php b/resources/views/fo/pages/news/post.blade.php index 062564f..dfb86fa 100644 --- a/resources/views/fo/pages/news/post.blade.php +++ b/resources/views/fo/pages/news/post.blade.php @@ -1,4 +1,4 @@ -@extends('fo.layout', ['brParam' => $news]) +@extends('fo.layout') @section('title', $news->seo_title) @section('description', $news->seo_description) @@ -23,22 +23,27 @@
-
+
-
-

{{ $news->title }}

+
+ @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $news] )
-
- @foreach ($news->categories as $category) -
- {{ $category->label }} -
- @endforeach -
-
-

{{ $news->subtitle }}

+
+
+

{{ $news->title }}

+
+
+ @foreach ($news->categories as $category) +
+ {{ $category->label }} +
+ @endforeach +
+
+

{{ $news->subtitle }}

+