feat: integrate tinacms
This commit is contained in:
parent
659755e9c5
commit
62b2518590
12 changed files with 8602 additions and 89 deletions
|
@ -2,6 +2,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch')
|
|||
|
||||
module.exports = async function () {
|
||||
const MUSIC_KEY = process.env.API_KEY_LASTFM
|
||||
if (!MUSIC_KEY) return
|
||||
const url = `http://ws.audioscrobbler.com/2.0/?method=user.gettopalbums&user=cdme_&api_key=${MUSIC_KEY}&limit=8&format=json&period=7day`
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
|
|
|
@ -2,6 +2,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch')
|
|||
|
||||
module.exports = async function () {
|
||||
const MUSIC_KEY = process.env.API_KEY_LASTFM
|
||||
if (!MUSIC_KEY) return
|
||||
const url = `http://ws.audioscrobbler.com/2.0/?method=user.gettopartists&user=cdme_&api_key=${MUSIC_KEY}&limit=8&format=json&period=7day`
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
|
|
|
@ -2,6 +2,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch')
|
|||
|
||||
module.exports = async function () {
|
||||
const KEY_CORYD = process.env.API_KEY_WEBMENTIONS_CORYD_DEV
|
||||
if (!KEY_CORYD) return
|
||||
const url = `https://webmention.io/api/mentions.jf2?token=${KEY_CORYD}&per-page=1000`
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
|
|
2
src/admin/.gitignore
vendored
Normal file
2
src/admin/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
index.html
|
||||
assets/
|
2
src/assets/admin/.gitignore
vendored
Normal file
2
src/assets/admin/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
index.html
|
||||
assets/
|
2
src/assets/img/admin/.gitignore
vendored
Normal file
2
src/assets/img/admin/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
index.html
|
||||
assets/
|
Reference in a new issue