summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-03-08 02:09:59 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-03-08 02:09:59 +0000
commitc3b94f34f2e3ead663999cb7723991abc4dfdbb4 (patch)
treeec90ea4e8cb67bfc3163f17a5a6ebfa3b135d1ec
parentf5598183b15b689523acef40346180f1565aee7a (diff)
Add site meta
-rw-r--r--config.php2
-rw-r--r--source/_layouts/master.blade.php10
2 files changed, 10 insertions, 2 deletions
diff --git a/config.php b/config.php
index 1626ba0..3f46230 100644
--- a/config.php
+++ b/config.php
@@ -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