summaryrefslogtreecommitdiff
path: root/source/_layouts/master.blade.php
blob: 9b7257db43fc1208e9c99962818724f5c0468bdb (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
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php use \Illuminate\Support\Str; ?>
<!doctype html>
<html lang="en" prefix="og: https://ogp.me/ns#">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="{{ $page->description ?? $page->siteDescription }}">
        <meta name="author" content="{{ $page->author }}">
        <meta property="og:title" content="{{ $page->title ?  $page->title . ' | ' : '' }}{{ $page->siteName }}">
        <meta property="og:type" content="{{ $page->title ? 'article' : 'website' }}">
        <meta property="og:url" content="{{ $page->getUrl() }}">
        <meta property="og:description" content="{{ $page->description ?? $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') }}">
        @if ($page->production)<script async src="https://www.googletagmanager.com/gtag/js?id=UA-176151999-1"></script>@endif
    </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>
            <a href="https://hetzner.cloud/?ref=Gf3UFbRaixBK">
                <img class="ml-auto mr-auto mt-8" src="/assets/images/hetzner-251.png" title="Flexible cloud servers with high-end-hardware from Hetzner" alt="Flexible cloud servers with high-end-hardware from Hetzner"/>
            </a>
            <p>Copyright © 2020 David T. Sadler</p>
        </aside>
    </div>
    @if ($page->production)
        <script>
          window.dataLayer = window.dataLayer || [];
          function gtag(){dataLayer.push(arguments);}
          gtag('js', new Date());
          gtag('config', 'UA-176151999-1');
        </script>
    @endif
    <script src="{{ mix('js/main.js', 'assets/build') }}"></script>
  </body>
</html>