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,11 +1,11 @@
|
|||
const EleventyFetch = require('@11ty/eleventy-fetch')
|
||||
const mbidPatches = require('./json/mbid-patches.json')
|
||||
import EleventyFetch from '@11ty/eleventy-fetch'
|
||||
import mbidPatches from './json/mbid-patches.js'
|
||||
|
||||
const mbidMap = (artist) => {
|
||||
return mbidPatches[artist.toLowerCase()] || ''
|
||||
}
|
||||
|
||||
module.exports = async function () {
|
||||
export default async function () {
|
||||
const MUSIC_KEY = process.env.API_KEY_LASTFM
|
||||
const LISTENBRAINZ_TOKEN = process.env.LISTENBRAINZ_TOKEN
|
||||
const url = `https://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=coryd_&api_key=${MUSIC_KEY}&format=json&limit=200`
|
||||
|
|
Reference in a new issue