chore: update uses
This commit is contained in:
parent
5a82f4e7f7
commit
da945c1f53
4 changed files with 5 additions and 22 deletions
|
@ -1,18 +0,0 @@
|
|||
const EleventyFetch = require('@11ty/eleventy-fetch')
|
||||
|
||||
module.exports = async function () {
|
||||
const API_KEY_FATHOM = process.env.API_KEY_FATHOM
|
||||
const url =
|
||||
'https://api.usefathom.com/v1/aggregations?entity=pageview&entity_id=RBCOWZTA&aggregates=pageviews&field_grouping=pathname&sort_by=pageviews:desc&limit=10'
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
type: 'json',
|
||||
fetchOptions: {
|
||||
headers: {
|
||||
Authorization: `Bearer ${API_KEY_FATHOM}`,
|
||||
},
|
||||
},
|
||||
}).catch()
|
||||
const pages = await res
|
||||
return pages.filter((p) => p.pathname.includes('posts'))
|
||||
}
|
|
@ -27,7 +27,11 @@ module.exports = async function () {
|
|||
resume: [
|
||||
{ name: 'GitHub', url: 'https://github.com/cdransf', icon: 'brand-github' },
|
||||
{ name: 'LinkedIn', url: 'https://www.linkedin.com/in/cdransf/', icon: 'brand-linkedin' },
|
||||
{ name: 'SavvyCal', url: 'https://savvycal.com/coryd/quick-call', icon: 'calendar-plus' },
|
||||
{
|
||||
name: 'Google Calendar',
|
||||
url: 'https://calendar.app.google/sdgyNSx3RcWuatfT6',
|
||||
icon: 'calendar-plus',
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue