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 writingStats = require('writing-stats')
|
||||
import fs from 'fs'
|
||||
import writingStats from 'writing-stats'
|
||||
|
||||
const processPostFile = (filePath) => {
|
||||
export const processPostFile = (filePath) => {
|
||||
try {
|
||||
let content = fs.readFileSync(filePath, 'utf8')
|
||||
// remove front matter
|
||||
|
@ -30,7 +30,7 @@ const processPostFile = (filePath) => {
|
|||
}
|
||||
}
|
||||
|
||||
const makeYearStats = (
|
||||
export const makeYearStats = (
|
||||
currentYear,
|
||||
yearPostCount,
|
||||
yearWordCount,
|
||||
|
@ -57,8 +57,3 @@ const makeYearStats = (
|
|||
yearProgress,
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
processPostFile,
|
||||
makeYearStats,
|
||||
}
|
||||
|
|
Reference in a new issue