mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: SEO Improvements
- Added `APP_STAGING` variable to `.env.example` - Updated `config/app.php` to use `APP_STAGING` for determining the value of `IS_STAGING` - Updated `resources/views/layouts/app.blade.php` and `resources/views/posts/show.blade.php` to include additional meta tags for SEO and attribution
This commit is contained in:
@@ -4,6 +4,8 @@ APP_KEY=
|
|||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://127.0.0.1:8000
|
APP_URL=http://127.0.0.1:8000
|
||||||
|
|
||||||
|
APP_STAGING=false
|
||||||
|
|
||||||
RGAPI_KEY="RGAPI-00000000-0000-0000-0000-000000000000"
|
RGAPI_KEY="RGAPI-00000000-0000-0000-0000-000000000000"
|
||||||
|
|
||||||
LOGIN_ROUTE_NAME="/your/secret/login/route"
|
LOGIN_ROUTE_NAME="/your/secret/login/route"
|
||||||
|
|||||||
@@ -187,4 +187,17 @@ return [
|
|||||||
// 'Example' => App\Facades\Example::class,
|
// 'Example' => App\Facades\Example::class,
|
||||||
])->toArray(),
|
])->toArray(),
|
||||||
|
|
||||||
|
/*
|
||||||
|
| Configurations mostly used for SEO and attribution.
|
||||||
|
| These are used in the <head> of the page.
|
||||||
|
| Do not change these to your own URL, as they are used for attribution.
|
||||||
|
| If you want to change the URL, change the APP_URL in your .env file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'IS_STAGING' => env('APP_STAGING') == 'true',
|
||||||
|
|
||||||
|
'HEIMER_URL' => env('APP_ENV') == 'local' ? 'http://127.0.0.1:8000'
|
||||||
|
: (env('IS_STAGING')
|
||||||
|
? 'https://staging.heimerdinger.lol'
|
||||||
|
: 'https://heimerdinger.lol'),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -18,9 +18,12 @@
|
|||||||
<title>@yield('title')</title>
|
<title>@yield('title')</title>
|
||||||
<meta name="description" content="@yield('description')">
|
<meta name="description" content="@yield('description')">
|
||||||
|
|
||||||
|
@stack('meta_tags')
|
||||||
|
|
||||||
<!-- OpenGraph -->
|
<!-- OpenGraph -->
|
||||||
<meta property="og:site_name" content="Heimerdinger.LoL">
|
<meta property="og:site_name" content="Heimerdinger.LoL">
|
||||||
<meta property="og:title" content="@yield('title')">
|
<meta property="og:title" content="@yield('title')">
|
||||||
|
<meta property="og:url" content="{{url()->current()}}">
|
||||||
<meta property="og:description" content="@yield('description')">
|
<meta property="og:description" content="@yield('description')">
|
||||||
<meta property="og:locale" content="en">
|
<meta property="og:locale" content="en">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
@section('title', $post->title . ' • Heimerdinger.LoL')
|
@section('title', $post->title . ' • Heimerdinger.LoL')
|
||||||
@section('description', 'Heimerdinger.LoL: ' . $post->description)
|
@section('description', 'Heimerdinger.LoL: ' . $post->description)
|
||||||
|
|
||||||
|
@push('meta_tags')
|
||||||
|
<link rel="canonical" href="{{config('app.HEIMER_URL') . '/post/' . $post->slug}}">
|
||||||
|
|
||||||
|
<meta name="author" content="Heimerdinger.LoL">
|
||||||
|
<meta name="robots" content="index, follow">
|
||||||
|
<meta name="googlebot" content="index, follow">
|
||||||
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<a href="{{route('posts.index')}}"
|
<a href="{{route('posts.index')}}"
|
||||||
class="block mt-8 text-center text-orange-400 text-sm uppercase font-medium hover:underline">Back
|
class="block mt-8 text-center text-orange-400 text-sm uppercase font-medium hover:underline">Back
|
||||||
|
|||||||
Reference in New Issue
Block a user