I've created a shortcode for #GoHugoIo (a static site generator) that lets me embed Toots on my blog posts!
https://realmenweardress.es/2022/11/2022-11-30-s3-hugo-toot-embeds/
I've created a shortcode for #GoHugoIo (a static site generator) that lets me embed Toots on my blog posts!
https://realmenweardress.es/2022/11/2022-11-30-s3-hugo-toot-embeds/
@pieceofthepie I was looking at this. And the rendering is failing. Do you know what %s is in the second line?
{{- $finger := getJSON (printf "https://%s/.well-known/webfinger?resource=acct:%s@%s" (index $parts 2) (index $parts 1) (index $parts 2)) -}}
@bahree Thats going to resolve to your username in my case I would see acct:[email protected]
You'll see that the domain part is at index 2 and is also used to reach the url.
That whole thing is pulled from a configuration value you'll need in your config.toml file. MastodonName I think.
@pieceofthepie This is great - thanks. I'll try and work on cleaning it up and will share back in case anyone else wants to use.
And I am not a UX person, so will need to see how it turns out. :)