Feat: Swap the template page for the stub of a home page

Also add a new config file (`blog.php`) for specifying blog (read:
not-application) configuration items, like the display name.
This commit is contained in:
Jonathan Nielson 2024-02-04 18:52:19 -06:00
parent 0657aba732
commit 4a36012276
4 changed files with 31 additions and 141 deletions

16
config/blog.php Normal file
View File

@ -0,0 +1,16 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Publishing Name
|--------------------------------------------------------------------------
|
| The name of the blog that will be displayed to the world.
|
*/
'publishing_name' => 'Jon\'s Words',
];

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('blog.publishing_name') }} | Home</title>
</head>
<body>
<main>
<h2>Hey guys, check back soon for some word-based #content</h2>
</main>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -14,5 +14,5 @@ use Illuminate\Support\Facades\Route;
*/
Route::get('/', function () {
return view('welcome');
return view('home');
});