fix: remove unused code
This commit is contained in:
parent
91bf9a1d7b
commit
320b933c04
6 changed files with 16 additions and 35 deletions
|
@ -2,8 +2,6 @@ const dayjs = require("dayjs");
|
|||
const utc = require("dayjs/plugin/utc");
|
||||
const advancedFormat = require("dayjs/plugin/advancedFormat");
|
||||
|
||||
const postcss = require("postcss");
|
||||
const cssnano = require("cssnano");
|
||||
const pluralizeBase = require("pluralize");
|
||||
|
||||
const keys = Object.keys;
|
||||
|
@ -13,12 +11,6 @@ const entries = Object.entries;
|
|||
dayjs.extend(utc);
|
||||
dayjs.extend(advancedFormat);
|
||||
|
||||
const minifyCss = async (css) => {
|
||||
const output = await postcss([cssnano]).process(css, { from: undefined });
|
||||
|
||||
return output.css;
|
||||
};
|
||||
|
||||
const formatDate = (date, format) => dayjs.utc(date).format(format);
|
||||
|
||||
const organizeByDate = (collection) => {
|
||||
|
@ -101,7 +93,6 @@ module.exports = {
|
|||
formatDate,
|
||||
keys,
|
||||
limit,
|
||||
minifyCss,
|
||||
organizeByDate,
|
||||
pluralize,
|
||||
values,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* Sourced from eleventy-excellent's youtube shortcode
|
||||
/*
|
||||
* Sourced from eleventy-excellent's youtube shortcode
|
||||
* https://github.com/madrilene/eleventy-excellent/blob/main/config/shortcodes/youtube-lite/index.js
|
||||
*/
|
||||
const liteYoutube = (id, label) => {
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
const path = require("path").posix;
|
||||
const slugify = require("slugify");
|
||||
|
||||
const slugifyString = (string) => {
|
||||
return slugify(string, {
|
||||
lower: true,
|
||||
});
|
||||
};
|
||||
|
||||
const getFontUrl = (src) => path.join("/assets/fonts", src);
|
||||
|
||||
module.exports = {
|
||||
getFontUrl,
|
||||
slugifyString,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue