From 7dba1e49248262a87f7e37dc3d27437057d4cf51 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 29 Jan 2022 16:55:26 +0100 Subject: [PATCH] feat: blog post styling --- layouts/partials/vikunja-cloud-banner.html | 7 ++++++ layouts/post/single.html | 27 ++++++++-------------- tailwind.config.js | 6 ++++- 3 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/vikunja-cloud-banner.html diff --git a/layouts/partials/vikunja-cloud-banner.html b/layouts/partials/vikunja-cloud-banner.html new file mode 100644 index 0000000..eb597ea --- /dev/null +++ b/layouts/partials/vikunja-cloud-banner.html @@ -0,0 +1,7 @@ + +

Vikunja Cloud is here!

+

+ Get a hosted Vikunja Account. +

+
diff --git a/layouts/post/single.html b/layouts/post/single.html index f93f828..57035ab 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,24 +1,17 @@ {{ partial "header.html" . }} -
-
-

- - {{ .Title }} - -

-

- {{ .Date.Format "2006-01-02" }} -

+
+ {{ partial "vikunja-cloud-banner.html" }} + {{ partial "footer.html" . }} diff --git a/tailwind.config.js b/tailwind.config.js index 1b41341..e2f169f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -5,6 +5,11 @@ module.exports = { './src/*.css', './layouts/**/*.html' ], + safelist: [ + 'p-4', + '!text-white', + '!underline', + ], theme: { extend: { colors: { @@ -25,6 +30,5 @@ module.exports = { plugins: [ require('@tailwindcss/typography'), require('@tailwindcss/forms'), - require('@tailwindcss/aspect-ratio'), ], }