diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-03-08 02:09:59 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-03-08 02:09:59 +0000 |
| commit | c3b94f34f2e3ead663999cb7723991abc4dfdbb4 (patch) | |
| tree | ec90ea4e8cb67bfc3163f17a5a6ebfa3b135d1ec /source | |
| parent | f5598183b15b689523acef40346180f1565aee7a (diff) | |
Add site meta
Diffstat (limited to 'source')
| -rw-r--r-- | source/_layouts/master.blade.php | 10 |
1 files changed, 9 insertions, 1 deletions
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 |
