Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Links in Inline Code & Default Callout Dark Mode; Errant {}; Date/Time Zone #47

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ module.exports = function(eleventyConfig) {

// Date formatting (human readable)
eleventyConfig.addFilter("readableDate", dateObj => {
return DateTime.fromJSDate(dateObj).toFormat("LLL dd, yyyy");
return DateTime.fromJSDate(dateObj).setZone("utc").toFormat("LLL dd, yyyy");
});

// Date formatting (machine readable)
eleventyConfig.addFilter("machineDate", dateObj => {

return DateTime.fromJSDate(dateObj).toFormat("yyyy-MM-dd");
return DateTime.fromJSDate(dateObj).setZone("utc").toFormat("yyyy-MM-dd");
});

// Minify CSS
Expand Down Expand Up @@ -252,4 +252,4 @@ module.exports = function(eleventyConfig) {
output: "_site"
}
};
};
};
2 changes: 1 addition & 1 deletion _includes/experimental/blog/layouts/blog.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: /blog/index.html
---
<div class="flex w-full justify-center">
<div class="mt-4 px-6 md:px-6 lg:px-8 xl:px-12 w-full max-w-5xl">
<div class="wrapper flex justify-between">
<div class="flex-wrap justify-between">
<div class="main flex flex-col pr-0 prose sm:prose lg:prose-lg xl:prose-md">
<article>

Expand Down
4 changes: 2 additions & 2 deletions _includes/experimental/blog/layouts/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ section: post

<div class="flex w-full justify-center">
<div class="mt-4 px-6 md:px-6 lg:px-8 xl:px-12 w-full max-w-5xl">
<div class="wrapper flex justify-between">
<div class="flex-wrap justify-between">
{% if site.enableTOC and toc %}
<div class="main flex flex-col pr-0 xl:pr-64 prose sm:prose lg:prose-lg xl:prose-md">
{% else %}
Expand Down Expand Up @@ -78,4 +78,4 @@ section: post
</div>
</div>
</div>


2 changes: 1 addition & 1 deletion _includes/layouts/page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ section: page

<div class="flex w-full justify-center">
<div class="mt-4 px-6 md:px-6 lg:px-8 xl:px-12 w-full max-w-5xl">
<div class="wrapper flex justify-between">
<div class="flex-wrap justify-between">
{% if site.enableTOC and toc %}
<div class="main flex flex-col pr-0 xl:pr-64 prose sm:prose lg:prose-lg xl:prose-md">
{% else %}
Expand Down
22 changes: 12 additions & 10 deletions styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
.prose a:hover {
@apply dark:text-gray-500
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 .prose hr, .prose strong {
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 .prose hr, .prose strong, .prose thead {
@apply dark:text-gray-400
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
scroll-margin-top: 3.5em;
}
.prose pre code {
@apply overflow-x-auto !important
.prose pre {
@apply overflow-x-auto !important;
}
.prose code {
@apply dark:text-gray-400 overflow-x-auto !important;
}
.prose .footer-nav a {
@apply no-underline !important
Expand All @@ -34,13 +37,12 @@
.prose ul.spacelog {
@apply list-none -ml-6 !important;
}
.prose ul.contains-task-list .task-list-item,
.prose ul.spacelog {
::before {
.prose ul.contains-task-list .task-list-item::before {
@apply hidden !important;
}
.prose ul.spacelog::before {
@apply hidden !important;
}
}

/* Define blockquotes and some standard callout blocks */
blockquote {
@apply rounded-lg p-4 bg-gray-100 dark:bg-gray-500 border-gray-200 border-l-8 dark:border-gray-700;
Expand All @@ -49,7 +51,7 @@
@apply px-8 py-4 mb-4 rounded-lg bg-yellow-50;
}
.callout, .callout strong, .callout em {
@apply dark:bg-gray-400 dark:text-gray-900;
@apply dark:bg-yellow-400 dark:text-gray-900;
}
.callout-blue {
@apply px-8 py-4 mb-4 rounded-lg bg-blue-50;
Expand Down Expand Up @@ -127,4 +129,4 @@
input {
@apply dark:text-gray-400
}
}
}