chore: unused filters + deps
This commit is contained in:
parent
13b80c09cc
commit
d61b1215bf
1 changed files with 0 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
||||||
import { DateTime } from 'luxon'
|
import { DateTime } from 'luxon'
|
||||||
import { URL } from 'url'
|
import { URL } from 'url'
|
||||||
import slugify from 'slugify'
|
import slugify from 'slugify'
|
||||||
import markdownIt from 'markdown-it'
|
|
||||||
import sanitizeHtml from 'sanitize-html';
|
import sanitizeHtml from 'sanitize-html';
|
||||||
import authors from '../data/author-map.js'
|
import authors from '../data/author-map.js'
|
||||||
|
|
||||||
|
@ -83,13 +82,6 @@ export default {
|
||||||
readableDate: (date) => {
|
readableDate: (date) => {
|
||||||
return DateTime.fromISO(date).toFormat('LLLL d, yyyy')
|
return DateTime.fromISO(date).toFormat('LLLL d, yyyy')
|
||||||
},
|
},
|
||||||
dateToReadableDate: (date) => {
|
|
||||||
return new Date(date)
|
|
||||||
.toLocaleString('en-US', {
|
|
||||||
timeZone: 'America/Los_Angeles',
|
|
||||||
})
|
|
||||||
.split(',')[0]
|
|
||||||
},
|
|
||||||
isoDateOnly: (date, separator) => {
|
isoDateOnly: (date, separator) => {
|
||||||
let d = new Date(date)
|
let d = new Date(date)
|
||||||
let month = '' + (d.getMonth() + 1)
|
let month = '' + (d.getMonth() + 1)
|
||||||
|
@ -146,7 +138,6 @@ export default {
|
||||||
|
|
||||||
// feeds
|
// feeds
|
||||||
normalizeEntries: (entries) => {
|
normalizeEntries: (entries) => {
|
||||||
const md = markdownIt({ html: true, linkify: true })
|
|
||||||
const posts = []
|
const posts = []
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
const dateKey = Object.keys(entry).find((key) => key.includes('date'))
|
const dateKey = Object.keys(entry).find((key) => key.includes('date'))
|
||||||
|
|
Reference in a new issue