diff options
| -rw-r--r-- | config.php | 2 | ||||
| -rw-r--r-- | source/_layouts/master.blade.php | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -5,7 +5,7 @@ use Illuminate\Support\Str; return [ 'baseUrl' => '', 'production' => false, - 'siteName' => 'David T. Sadler', + 'siteName' => 'davidtsadler.com', 'siteDescription' => 'My little bit of the Internet', 'siteAuthor' => 'David T. Sadler', 'perPage' => 2, diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php index cd0cfad..02eb72c 100644 --- a/source/_layouts/master.blade.php +++ b/source/_layouts/master.blade.php @@ -4,6 +4,14 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content="{{ $page->meta_description ?? $page->siteDescription }}"> + <meta property="og:title" content="{{ $page->title ? $page->title . ' | ' : '' }}{{ $page->siteName }}"/> + <meta property="og:type" content="website" /> + <meta property="og:url" content="{{ $page->getUrl() }}"/> + <meta property="og:description" content="{{ $page->siteDescription }}" /> + + <title>{{ $page->title ? $page->title . ' | ' : '' }}{{ $page->siteName }}</title> + <link rel="shortcut icon" href="/assets/images/green.png"> <link rel="stylesheet" href="{{ mix('css/main.css', 'assets/build') }}"> </head> @@ -12,7 +20,7 @@ <article class="p-4">@yield('article')</article> <aside class="p-4 pt-8 lg:fixed text-center"> <h1 class="text-3xl font-bold"><a href="/">davidtsadler.com</a></h1> - <p class="mb-4">My little bit of the internet</p> + <p class="mb-4">My little bit of the Internet</p> @foreach ($page->allTags($posts) as $tag) <a class="inline-block rounded p-1 mt-4 {{Str::slug($tag) }}" href="/tags/{{ Str::slug($tag) }}">{{ $tag }}</a> @endforeach |
