Added dummy news route for link compatibility with the news component and check if news data contains news
This commit is contained in:
parent
6b632917c6
commit
2887c5dc68
663
package-lock.json
generated
663
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -79,7 +79,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mx-auto max-w-[1280px]">
|
<div class="mx-auto max-w-[1280px]">
|
||||||
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-12">
|
<div v-if="blockData.articles" class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-12">
|
||||||
<!-- Begin news article loop -->
|
<!-- Begin news article loop -->
|
||||||
<div
|
<div
|
||||||
v-for="(article, index) in blockData.articles.data"
|
v-for="(article, index) in blockData.articles.data"
|
||||||
|
@ -26,6 +26,10 @@ Route::get('/salesterms', function () {
|
|||||||
return Inertia::render('Welcome');
|
return Inertia::render('Welcome');
|
||||||
})->name('salesTerms');
|
})->name('salesTerms');
|
||||||
|
|
||||||
|
Route::get('/news', function () {
|
||||||
|
return Inertia::render('Welcome');
|
||||||
|
})->name('news');
|
||||||
|
|
||||||
Route::get('/p/{slug}', [PageRender::class, 'view'])->name('page.view');
|
Route::get('/p/{slug}', [PageRender::class, 'view'])->name('page.view');
|
||||||
|
|
||||||
Route::middleware(['auth', 'verified'])->group(function() {
|
Route::middleware(['auth', 'verified'])->group(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user