From 534a38a63c829c262c419f39f5bf9627cd41d0c2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Add dark mode support --- source/_layouts/default.html.twig | 4 ++-- source/_pages/blog.html.twig | 2 +- source/_pages/talks.html.twig | 2 +- source/_partials/navbar.html.twig | 4 ++-- tailwind.config.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 0e594c63..026642b0 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -1,12 +1,12 @@ {% extends 'app' %} {% block body %} -
+
Skip to main content {% include 'navbar' %} -
+
{% block content_wrapper %} {% block content %}{% endblock %} diff --git a/source/_pages/blog.html.twig b/source/_pages/blog.html.twig index 03b8279b..d4a252f7 100644 --- a/source/_pages/blog.html.twig +++ b/source/_pages/blog.html.twig @@ -11,7 +11,7 @@ use: {% for talk in data.posts %}

- + {{ talk.title }}

diff --git a/source/_pages/talks.html.twig b/source/_pages/talks.html.twig index d9974b1d..8465eca8 100644 --- a/source/_pages/talks.html.twig +++ b/source/_pages/talks.html.twig @@ -11,7 +11,7 @@ use: {% for talk in data.talks|sort((a,b) => a.sortable_date < b.sortable_date) %}
diff --git a/tailwind.config.js b/tailwind.config.js index e7b804bd..314f045c 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,7 +7,7 @@ const typography = require('@tailwindcss/typography') const { fontFamily } = defaultTheme module.exports = { - darkMode: false, + darkMode: 'media', important: true, purge: { content: [