Move all files to sculpin/
This commit is contained in:
parent
c5d71803a5
commit
0f61b4e9ee
1514 changed files with 0 additions and 0 deletions
3
sculpin/source/_layouts/_macros.html.twig
Normal file
3
sculpin/source/_layouts/_macros.html.twig
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% macro yearsOfExperience() %}
|
||||
{{ today|date('Y') - 2007 }}
|
||||
{% endmacro %}
|
102
sculpin/source/_layouts/base.html.twig
Normal file
102
sculpin/source/_layouts/base.html.twig
Normal file
|
@ -0,0 +1,102 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-GB">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
{% if site.features.new_css %}
|
||||
{% else %}
|
||||
<link href="/build/tailwind.css?v={{ site.assets.version }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
<link rel="canonical" href="{{ site.url }}{{ page.url|trim('/', 'right') }}">
|
||||
<meta name="author" content="Oliver Davies">
|
||||
<meta name="generator" content="Sculpin (https://sculpin.io)">
|
||||
<meta name="keywords" content="Drupal Developer, Drupal Consultant, Drupal Architect, Drupal Strategist, Drupal Trainer, Triple Certified Drupal Expert, Public Speaker, Workshop Trainer, Technical Lead, Technical Coach, Software Development Coach, Automated Testing, Test-Driven Development">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:creator" content="@opdavies">
|
||||
<meta name="twitter:image" content="/assets/images/od-logo.jpg">
|
||||
<meta name="twitter:site" content="@opdavies">
|
||||
|
||||
<meta property="og:image" name="image" content="/assets/images/od-logo.jpg">
|
||||
<meta property="og:site_name" content="Oliver Davies">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url|trim('/', 'right') }}">
|
||||
|
||||
{% if page.blocks.meta_description %}
|
||||
<meta name="description" content="{{ page.blocks.meta_description }}">
|
||||
{% elseif page.meta.description %}
|
||||
<meta name="description" content="{{ page.meta.description }}">
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.meta.description }}">
|
||||
{% endif %}
|
||||
|
||||
{% block head_title %}
|
||||
{% if page.meta.title %}
|
||||
<title>{{ page.meta.title }}</title>
|
||||
<meta property="og:title" content="{{ page.meta.title }}">
|
||||
<meta property="twitter:title" content="{{ page.meta.title }}">
|
||||
{% else %}
|
||||
<title>{{ page.title }} | {{ site.name }}</title>
|
||||
<meta property="og:title" content="{{ page.title }} | {{ site.name }}">
|
||||
<meta property="twitter:title" content="{{ page.title }} | {{ site.name }}">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block styles %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<a class="sr-only focus:not-sr-only" href="#footer">Jump to the navigation menu</a>
|
||||
|
||||
<div class="min-h-screen font-sans text-base font-light md:text-xl dark:text-white text-grey-900 selection:bg-blue-primary selection:text-white dark:bg-grey-900 dark:selection:bg-blue-primary dark:selection:text-white">
|
||||
{% include 'banner.html.twig' %}
|
||||
|
||||
<div class="py-4 px-4 mx-auto max-w-xl">
|
||||
<header class="flex flex-col justify-between items-center md:flex-row">
|
||||
{% include 'logo.html.twig' %}
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="py-10 px-6 mx-auto max-w-xl md:py-10">
|
||||
<div class="space-y-10">
|
||||
{% block content_top %}{% endblock %}
|
||||
|
||||
<main>
|
||||
{% if page.url matches "#^/atdc/#" %}
|
||||
<div class="mb-10 border border-grey-800 dark:border-grey-600">
|
||||
<div class="py-4 px-4">
|
||||
<div class="{{ site.prose_classes }}">
|
||||
<p>I'm currently updating this course for Drupal 11. If you find any bugs or have any issues, <a href="mailto:{{ site.email }}?subject=ATDC">please let me know</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h1 class="mb-4 text-xl font-bold md:text-2xl">
|
||||
{% block page_title %}{{ page.title }}{% endblock %}
|
||||
</h1>
|
||||
|
||||
<div class="{{ site.prose_classes }}">
|
||||
{% block content_wrapper %}
|
||||
{% block content %}{% endblock %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% block content_bottom %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<footer class="mt-16 mb-6">
|
||||
<a id="footer" tabindex="-1"></a>
|
||||
|
||||
{% include 'main-menu.html.twig' %}
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Add the Mastodon verification link so pages can be verified. #}
|
||||
<a class="hidden" rel="me" href="{{ site.mastodon.url }}">Mastodon</a>
|
||||
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
1
sculpin/source/_layouts/feed.html.twig
Normal file
1
sculpin/source/_layouts/feed.html.twig
Normal file
|
@ -0,0 +1 @@
|
|||
{% block content %}{% endblock %}
|
5
sculpin/source/_layouts/page.html.twig
Normal file
5
sculpin/source/_layouts/page.html.twig
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends 'base' %}
|
||||
|
||||
{% block content_bottom %}
|
||||
{% include 'about-me.html.twig' %}
|
||||
{% endblock %}
|
71
sculpin/source/_layouts/podcast_episode.html.twig
Normal file
71
sculpin/source/_layouts/podcast_episode.html.twig
Normal file
|
@ -0,0 +1,71 @@
|
|||
{% extends 'page' %}
|
||||
|
||||
{% block meta_description -%}
|
||||
Discussing {{ page.topic }} with {{ page.guests|join(' and ') }}
|
||||
{%- endblock %}
|
||||
|
||||
{% block page_title -%}
|
||||
{% set episodeNumber = page.url|trim('/')|split('/')|last|split('-')|first -%}
|
||||
|
||||
Episode {{ episodeNumber }}: {{ page.topic }} with {{ page.guests|join(' and ') }}
|
||||
{%- endblock %}
|
||||
|
||||
{% block head_title %}
|
||||
<title>{{ block('page_title') }} | Beyond Blocks podcast | {{ site.name }}</title>
|
||||
<meta property="og:title" content="{{ block('page_title') }} | Beyond Blocks podcast | {{ site.name }}" />
|
||||
<meta property="twitter:title" content="{{ block('page_title') }} | Beyond Blocks podcast | {{ site.name }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{% if page.episode_filename %}
|
||||
<audio controls>
|
||||
<source src="/files/bb/episodes/{{ page.episode_filename }}" type="audio/mp3">
|
||||
</audio>
|
||||
{% endif %}
|
||||
|
||||
{{ parent() }}
|
||||
|
||||
{% if page.talking_points %}
|
||||
<div>
|
||||
<h2>Key points</h2>
|
||||
|
||||
<ul>
|
||||
{% for point in page.talking_points %}
|
||||
<li>{{ point }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.quotes %}
|
||||
<div>
|
||||
<h2>Quotes</h2>
|
||||
|
||||
<ul>
|
||||
{% for quote in page.quotes %}
|
||||
<li>{{ quote }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
<h2>Links</h2>
|
||||
|
||||
<ul>
|
||||
{% for link in page.links %}
|
||||
<li>
|
||||
<a href="{{ link.1 }}">{{ link.0 }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<ul>
|
||||
</div>
|
||||
|
||||
{% for guest in page.guests %}
|
||||
{% include 'podcast/other-episodes.html.twig' with {
|
||||
all_episodes: data.podcast_episodes,
|
||||
guest,
|
||||
topic: page.topic,
|
||||
} only %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
11
sculpin/source/_layouts/post.html.twig
Normal file
11
sculpin/source/_layouts/post.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends 'page' %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
<time datetime="{{ page.date|date('Y-m-d') }}">{{ page.date|date('F jS, Y') }}</time>
|
||||
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_bottom %}
|
||||
{% include 'about-me.html.twig' %}
|
||||
{% endblock %}
|
31
sculpin/source/_layouts/presentation.html.twig
Normal file
31
sculpin/source/_layouts/presentation.html.twig
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% extends 'page' %}
|
||||
|
||||
{% block meta_description %}{{ page.title }} presented by Oliver Davies{% endblock %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{{ parent() }}
|
||||
|
||||
{% if block('abstract') %}
|
||||
<h2>Abstract</h2>
|
||||
|
||||
{% block abstract %}{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.new_events %}
|
||||
{% include 'presentation/events-new' with {
|
||||
events: page.events,
|
||||
} %}
|
||||
{% else %}
|
||||
{% include 'presentation/slides' with {
|
||||
speakerdeck: page.speakerdeck,
|
||||
} %}
|
||||
|
||||
{% include 'presentation/video' with {
|
||||
video: page.video,
|
||||
} %}
|
||||
|
||||
{% include 'presentation/events' with {
|
||||
events: page.events,
|
||||
} %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue