summaryrefslogtreecommitdiff
path: root/source/_layouts/master.blade.php
blob: bf6fc3d38a1630448d91fac6b9a4787add041211 (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
33
34
35
36
37
38
<?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->metaDescription ?? $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 href="/feed.atom" type="application/atom+xml" rel="alternate" title="{{ $page->siteName }} Atom Feed">
        <link rel="stylesheet" href="{{ mix('css/main.css', 'assets/build') }}">
    </head>
  <body class="text-lg">
    <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
            <p><a href="/feed.atom">Atom Feed</a></p>
            <a href="https://brave.com/dda039">
                <img class="ml-auto mr-auto mt-8" src="/assets/images/brave.png" title="Proud to support a faster, safer web with the Brave browser" alt="Proud to support a faster, safer web with the Brave browser"/>
            </a>
            <p>Copyright © 2020 David T. Sadler</p>
        </aside>
    </div>
    <script src="{{ mix('js/main.js', 'assets/build') }}"></script>
  </body>
</html>