feat: upgrade to 11ty 3.0.0@alpha
This commit is contained in:
parent
2cd8e4a380
commit
e16633653a
43 changed files with 578 additions and 5039 deletions
|
@ -1,7 +1,7 @@
|
|||
const fs = require('fs')
|
||||
const Image = require('@11ty/eleventy-img')
|
||||
import fs from 'fs'
|
||||
import Image from '@11ty/eleventy-img'
|
||||
|
||||
const svgToJpeg = function () {
|
||||
export const svgToJpeg = function () {
|
||||
const socialPreviewImagesDir = '_site/assets/img/social-preview/'
|
||||
fs.readdir(socialPreviewImagesDir, (err, files) => {
|
||||
if (!!files && files.length > 0) {
|
||||
|
@ -23,7 +23,3 @@ const svgToJpeg = function () {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
svgToJpeg,
|
||||
}
|
||||
|
|
Reference in a new issue