styling tweaks, date formatting, blog tweaks
This commit is contained in:
parent
4260eb4134
commit
93858a4dd4
6 changed files with 37 additions and 9 deletions
|
@ -1,6 +1,16 @@
|
|||
import sass from "sass";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
export default async function (eleventyConfig) {
|
||||
eleventyConfig.addFilter("dateLocale", function (value) {
|
||||
return DateTime.fromISO(new Date(value).toISOString()).toLocaleString({
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: '2-digit',
|
||||
});
|
||||
});
|
||||
|
||||
// SCSS
|
||||
eleventyConfig.addTemplateFormats("scss");
|
||||
|
||||
eleventyConfig.addExtension("scss", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue