From 0468e10854aaf2d070f2010b44244cea17e3299c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 5 Jun 2023 09:17:38 +0200 Subject: [PATCH 1/2] refresh sitemap config set only published elements --- config/refresh-sitemap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/refresh-sitemap.php b/config/refresh-sitemap.php index a2c1cb64..0d25bceb 100644 --- a/config/refresh-sitemap.php +++ b/config/refresh-sitemap.php @@ -57,7 +57,9 @@ return [ * ] * */ - 'queryConditions' => [], + 'queryConditions' => [ + 'status' => true, + ], /** * The default route frequency to use with sitemap generator From 568ebb9f2df7dcd645eb23ba4aacc3289413960a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 5 Jun 2023 09:38:33 +0200 Subject: [PATCH 2/2] 404 PAGE - Add second layout as minimal for front (we have 2 to maintain) - set links as optional (Do not throw 404 from layout) - Keep 404 as standard as possible --- resources/views/fo/layout-minimal.blade.php | 37 +++++++++++++++++++ resources/views/fo/layouts/footer.blade.php | 4 +- .../views/fo/layouts/navigation.blade.php | 4 +- resources/views/vendor/errors/404.blade.php | 26 +++++++++---- 4 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 resources/views/fo/layout-minimal.blade.php diff --git a/resources/views/fo/layout-minimal.blade.php b/resources/views/fo/layout-minimal.blade.php new file mode 100644 index 00000000..8fa5bff3 --- /dev/null +++ b/resources/views/fo/layout-minimal.blade.php @@ -0,0 +1,37 @@ + + + + + @include('fo.layouts.head') + + + + + + + @include('fo.layouts.header') + + @yield('content') + + @include('fo.layouts.footer') + @include('fo.layouts.navigation') + + + @include('fo.vendor.ldcweb-cookies') + @stack('scripts-constants') + @include('modules.script-constants') + @stack('scripts') + @vite(['resources/ts/fo.ts']) + + + + diff --git a/resources/views/fo/layouts/footer.blade.php b/resources/views/fo/layouts/footer.blade.php index 9b155899..0ac23dd9 100644 --- a/resources/views/fo/layouts/footer.blade.php +++ b/resources/views/fo/layouts/footer.blade.php @@ -27,8 +27,10 @@
  • - @php $firstConcept = \App\Models\Concept::query()->firstOrFail(); @endphp + @php $firstConcept = \App\Models\Concept::query()->first(); @endphp + @if($firstConcept) {{ __('Our concept') }} + @endif
      @foreach ($conceptListGlobal as $concept)
    • diff --git a/resources/views/fo/layouts/navigation.blade.php b/resources/views/fo/layouts/navigation.blade.php index 0b3fa884..d611228d 100644 --- a/resources/views/fo/layouts/navigation.blade.php +++ b/resources/views/fo/layouts/navigation.blade.php @@ -19,8 +19,10 @@ {{ __('Home') }}
    • - @php $concept = \App\Models\Concept::query()->firstOrFail(); @endphp + @php $concept = \App\Models\Concept::query()->first(); @endphp + @if($concept) {{ __('Our concept') }} + @endif