Update eleventy to 3.0.0-alpha.4
This commit is contained in:
parent
3909e2fcbe
commit
8f9853f6db
8 changed files with 918 additions and 743 deletions
|
|
@ -1,8 +1,6 @@
|
|||
module.exports = config => {
|
||||
return {
|
||||
"title": "arnes.space",
|
||||
"baseUrl": "https://arnes.space",
|
||||
"repo": "https://git.arnes.space/arne/arnes.space",
|
||||
"listDrafts": !!process.env.LIST_DRAFTS
|
||||
}
|
||||
}
|
||||
export default (_) => ({
|
||||
"title": "arnes.space",
|
||||
"baseUrl": "https://arnes.space",
|
||||
"repo": "https://git.arnes.space/arne/arnes.space",
|
||||
"listDrafts": !!process.env.LIST_DRAFTS
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const crypto = require('crypto')
|
||||
const seedrandom = require('seedrandom')
|
||||
const { serialize } = require('@thi.ng/hiccup')
|
||||
import crypto from 'crypto'
|
||||
import seedrandom from 'seedrandom'
|
||||
import { serialize } from '@thi.ng/hiccup'
|
||||
|
||||
const range = function* (end) {
|
||||
for (let i = 0; i < end; i++) {
|
||||
|
|
@ -76,4 +76,4 @@ const tenPrint = content => {
|
|||
["use", {x, y, "class": "arc", "href": (random() < 0.5 ? "#arc-b" : "#arc-a") }]))]]
|
||||
}
|
||||
|
||||
module.exports = content => serialize(tenPrint(content || ''))
|
||||
export default content => serialize(tenPrint(content || ''))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
const { MB_DATA_URL, LB_DATA_URL, OSM_DATA_URL } = require('process').env
|
||||
const eleventyFetch = require('@11ty/eleventy-fetch')
|
||||
import { env } from 'node:process'
|
||||
import eleventyFetch from '@11ty/eleventy-fetch'
|
||||
|
||||
const { MB_DATA_URL, LB_DATA_URL, OSM_DATA_URL } = env
|
||||
|
||||
const osmChangeSets = async (baseUrl) => {
|
||||
let lastTime = null
|
||||
|
|
@ -18,7 +20,7 @@ const osmChangeSets = async (baseUrl) => {
|
|||
return changesets
|
||||
}
|
||||
|
||||
module.exports = async _config => {
|
||||
export default async (_) => {
|
||||
const [
|
||||
musicBrainz,
|
||||
listenBrainzRaw,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const { promisify } = require('util')
|
||||
const exec = promisify(require('child_process').exec)
|
||||
import { promisify } from 'node:util'
|
||||
import { exec as _exec } from 'node:child_process'
|
||||
const exec = promisify(_exec)
|
||||
|
||||
const commitFromLog = message => {
|
||||
if (message === '') return {}
|
||||
|
|
@ -19,7 +20,7 @@ const lastCommitFor = async file => {
|
|||
return commitFromLog(stdout)
|
||||
}
|
||||
|
||||
module.exports = async (_) => {
|
||||
export default async (_) => {
|
||||
return {
|
||||
tags: "posts",
|
||||
layout: "posts.njk",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue