diff --git a/_includes/mastodonComments.njk b/_includes/mastodonComments.njk
index 03aaf0e..2000bd1 100644
--- a/_includes/mastodonComments.njk
+++ b/_includes/mastodonComments.njk
@@ -1,81 +1,12 @@
{% if mastodon_id %}
-
-
-
-
{% endif %}
diff --git a/eleventy.config.js b/eleventy.config.js
index 477aa8f..888f4e7 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -13,7 +13,7 @@ import {
dateSuffixAdder,
monthMap,
timeFormatter,
-} from "./public/js/modules/mastodonDateTools.js";
+} from "./public/js/modules/dateTools.js";
const figoptions = {
figcaption: true,
@@ -74,11 +74,12 @@ export default async function (eleventyConfig) {
eleventyConfig.addPlugin(pluginBundle);
// Filters
- eleventyConfig.addFilter("readableDate", (dateObj, format, zone) => {
- // Formatting tokens for Luxon: https://moment.github.io/luxon/#/formatting?id=table-of-tokens
- return DateTime.fromJSDate(dateObj, { zone: zone || "utc" }).toFormat(
- format || "dd LLLL yyyy",
- );
+ eleventyConfig.addFilter("niceDate", (date) => {
+ var day = new Date(date).getUTCDate();
+ var monthIndex = new Date(date).getUTCMonth();
+ var year = new Date(date).getUTCFullYear();
+
+ return `${day}${dateSuffixAdder(day)} of ${monthMap[monthIndex]}, ${year}`;
});
eleventyConfig.addFilter("htmlDateString", (dateObj) => {
diff --git a/public/js/modules/mastodonDateTools.js b/public/js/modules/dateTools.js
similarity index 100%
rename from public/js/modules/mastodonDateTools.js
rename to public/js/modules/dateTools.js
Loading comments...
-