summaryrefslogtreecommitdiff
path: root/source/_layouts
diff options
context:
space:
mode:
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/master.blade.php49
-rw-r--r--source/_layouts/post.blade.php25
-rw-r--r--source/_layouts/rss.blade.php12
-rw-r--r--source/_layouts/tag.blade.php10
4 files changed, 0 insertions, 96 deletions
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php
deleted file mode 100644
index ebc14cf..0000000
--- a/source/_layouts/master.blade.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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>
- <p><a href="mailto:david@davidtsadler.com">david@davidtsadler.com</a></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://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>
-
diff --git a/source/_layouts/post.blade.php b/source/_layouts/post.blade.php
deleted file mode 100644
index 49ca172..0000000
--- a/source/_layouts/post.blade.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php use \Illuminate\Support\Str; ?>
-@extends('_layouts.master')
-
-@section('article')
- <header class="sm:flex sm:flex-row sm:justify-between p-4 pb-8 border-b border-green-100 border-dashed mb-8">
- <div>
- <h1 class="text-green-300 text-3xl font-bold">{{$page->title }}</h1>
- <p class="text-green-600 text-2xl">{{ $page->description }}</p>
- </div>
- <div class="mt-8 sm:mt-0 text-right flex flex-row sm:flex-col">
- <time class="inline-block p-2 order-2 sm:order-1 ml-2" datetime="{{ $page->getDate()->format('Y-m-d') }}">
- {{ $page->getDate()->format('M d, Y') }}
- </time>
- <div class="order-1 sm:order-2">
- @foreach ($page->tags as $tag)
- <a class="inline-block rounded py-2 px-4 {{Str::slug($tag) }}" href="/tags/{{ Str::slug($tag) }}">{{ $tag }}</a>
- @endforeach
- </div>
- </div>
- </header>
- <section class="post-content">
- @yield('content')
- </section>
-@endsection
-
diff --git a/source/_layouts/rss.blade.php b/source/_layouts/rss.blade.php
deleted file mode 100644
index 191d3d7..0000000
--- a/source/_layouts/rss.blade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php echo "<?xml version=\"1.0\"?>\n"; ?>
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>{{ $page->siteName }}</title>
- <link href="{{ $page->baseUrl }}{{ $page->site_path }}" />
- <link type="application/atom+xml" rel="self" href="{{ $page->getUrl() }}" />
- <updated>{{ date(DATE_ATOM) }}</updated>
- <id>{{ $page->getUrl() }}</id>
- <author>
- <name>{{ $page->siteAuthor }}</name>
- </author>
- @yield('entries')
-</feed>
diff --git a/source/_layouts/tag.blade.php b/source/_layouts/tag.blade.php
deleted file mode 100644
index 5277bd8..0000000
--- a/source/_layouts/tag.blade.php
+++ /dev/null
@@ -1,10 +0,0 @@
-@extends('_layouts.master')
-
-@section('article')
- <ol class="list-none">
- @foreach ($page->posts($posts) as $post)
- @include('_partials.postStub')
- @endforeach
- </ol>
-@endsection
-