Skip to content

Commit

Permalink
fediverse comments section on fztotp note
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrockett committed Feb 24, 2025
1 parent 178398e commit 476136a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ const shortcodes = {

mastodonCommentsSection: (url) => {
// For use in Markdown only. Generates a standard comments section at the end of a note with a post URL.
const mastodonLink = shortcodes.newTabLink("Mastodon", "https://joinmastodon.org/")
return `## Comments?\n\nIf you have a ${mastodonLink} account, you can reply to [my post on Mastodon](${url}).`;
const mastodonLink = shortcodes.newTabLink("Mastodon", "https://joinmastodon.org/");
const postLink = shortcodes.newTabLink("my post on the Fediverse", url);
return `## Comments?\n\nIf you have a ${mastodonLink} account, you can reply to ${postLink}`;
}
};

Expand Down
2 changes: 2 additions & 0 deletions src/notes/2025/02/23/tiny-tools-fztotp.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ machine with:
curl -SsfL https://philcrockett.com/yolo/v1.sh \
| bash -s -- fztotp
```

{% mastodonCommentsSection "<https://fosstodon.org/@pcrock/114058031613011373>" %}

0 comments on commit 476136a

Please sign in to comment.