refactor: move into a website directory

This commit is contained in:
Oliver Davies 2022-07-13 18:09:09 +01:00
parent 86529d7148
commit 3c5c0e808a
747 changed files with 133 additions and 2 deletions

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="{{ site.locale|default('en') }}">
<head>
<link type="text/css" rel="stylesheet" href="/build/app.css"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300&display=swap" rel="stylesheet">
{% include 'meta' with { page, site } only %}
{% include 'plausible' with {
plausible: site.plausible,
} only %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>

View file

@ -0,0 +1,29 @@
{% extends 'app' %}
{% block body %}
<div class="min-h-screen font-sans text-base font-light text-gray-900 md:text-xl dark:text-white dark:bg-gray-900">
<a class="sr-only focus:not-sr-only" href="#main-content">Skip to main content</a>
{% include 'navbar' %}
<div class="py-10 px-4 mx-auto max-w-2xl md:py-10">
<div id="main-content">
<h1 class="text-xl font-bold md:text-2xl">
{% block page_title %}
{{ page.title }}
{% endblock %}
</h1>
<div class="mt-4">
{% block content_wrapper %}
{% block content %}{% endblock %}
{% endblock %}
</div>
</div>
<div class="mt-20 mb-6">
{% include 'footer' %}
</div>
</div>
</div>
{% endblock %}

View file

@ -0,0 +1 @@
{% extends 'base' %}

View file

@ -0,0 +1,11 @@
{% extends 'base' %}
{% block content_wrapper %}
<div class="markdown">
{% if page.intro_text %}
<p class="max-w-lg">{{ page.intro_text }}</p>
{% endif %}
{{ parent() }}
</div>
{% endblock %}

View file

@ -0,0 +1,35 @@
{% extends 'base' %}
{% block content_wrapper %}
<div class="space-y-10">
<div class="space-y-6">
<header>
<time datetime="{{ page.date|date('Y-m-d') }}">
Posted on {{ page.date|date('jS F Y') -}}
</time>
</header>
<div>
{% include 'post/old-post-message' with {
post: page,
} only %}
</div>
<div class="markdown">
{{ parent() }}
</div>
{% include 'post/comments-questions' with {
twitter: {
name: site.twitter.name,
url: site.twitter.url
}
} only %}
</div>
{% include 'about-author' with {
avatar: site.avatar,
work: site.work,
} only %}
</div>
{% endblock %}

View file

@ -0,0 +1,28 @@
{% extends 'base' %}
{% block content_wrapper %}
<div class="space-y-10">
<div class="space-y-6">
<div class="markdown">
{{ parent() }}
</div>
{% include 'talk/slides' with {
speakerdeck: page.speakerdeck,
} only %}
{% include 'talk/video' with {
video: page.video,
} only %}
{% include 'talk/event-list' with {
events: page.events|reverse,
} only %}
</div>
{% include 'about-author' with {
avatar: site.avatar,
work: site.work,
} only %}
</div>
{% endblock %}