summaryrefslogtreecommitdiff
path: root/source/_layouts/master.blade.php
blob: 02eb72c24fcd3ec806aaad713435dede5004cd21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php use \Illuminate\Support\Str; ?>
<!doctype html>
<html lang="en">
    <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>
  <body>
    <div id="main-sidebar-container">
        <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>
            @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
        </aside>
    </div>
    <script src="{{ mix('js/main.js', 'assets/build') }}"></script>
  </body>
</html>