now page
This commit is contained in:
parent
82604bd42b
commit
0ff72b4770
11 changed files with 193 additions and 2 deletions
17
src/_data/now.js
Normal file
17
src/_data/now.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const EleventyFetch = require('@11ty/eleventy-fetch')
|
||||
|
||||
module.exports = async function () {
|
||||
const url = 'https://coryd.dev/api/now?endpoints=artists,albums,books,movies,tv'
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '3h',
|
||||
type: 'json',
|
||||
})
|
||||
const now = await res
|
||||
return {
|
||||
artists: now.artists,
|
||||
albums: now.albums,
|
||||
books: now.books,
|
||||
movies: now.movies,
|
||||
tv: now.tv,
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Cory Dransfeldt",
|
||||
"url": "https://coryd.dev",
|
||||
"urlCdn": "https://cdn.coryd.dev",
|
||||
"title": "Cory Dransfeldt",
|
||||
"description": "I'm a software developer in Camarillo, California. I enjoy hanging out with my beautiful family and 4 rescue dogs, technology, automation, music, writing, reading and tv and movies.",
|
||||
"gmail": "mailto:hi@coryd.dev",
|
||||
|
|
Reference in a new issue