13 lines
430 B
JavaScript
13 lines
430 B
JavaScript
const EleventyFetch = require("@11ty/eleventy-fetch");
|
|
|
|
module.exports = async function fetchMentions() {
|
|
const url = `https://webmention.io/api/mentions.jf2?domain=devon.lol&token=${process.env.WEBMENTIONSIO_TOKEN}`;
|
|
|
|
const mentions = await EleventyFetch(url, {
|
|
duration: "1s",
|
|
type: "json",
|
|
});
|
|
console.log('mentions:', mentions);
|
|
console.log('mentions.children:', mentions.children);
|
|
return mentions.children;
|
|
};
|