Fix mastodon comment author URL
This commit is contained in:
1 parent
0387793868
commit
62f6268651
2 files changed
+4
-2
No files matched your search
@@ -60,6 +60,8 @@ export default async function(eleventyConfig) {
|
||||
});
|
||||
|
||||
// Shortcodes
|
||||
|
||||
// Cowsay
|
||||
eleventyConfig.addNunjucksFilter("cowsay", cowText => {
|
||||
const cowCaptionReplacementTable = [
|
||||
[`
|
||||
@@ -89,6 +91,7 @@ export default async function(eleventyConfig) {
|
||||
`;
|
||||
});
|
||||
|
||||
// Embed a toot
|
||||
eleventyConfig.addAsyncShortcode("toot", async function(instance, ID) {
|
||||
const tootData = await fetch(
|
||||
`https://${instance}/api/v1/statuses/${ID}`
|
||||
|
||||
Reference in new issue
Block a user