Medium Syndication Data

This commit is contained in:
Brandon Rozek 2023-02-09 20:19:30 -05:00
parent e8c9b33f2d
commit 79329aae66
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
13 changed files with 85 additions and 61 deletions

View file

@ -1,10 +1,13 @@
---
title: "Displaying a Toot in Hugo"
date: 2022-05-20T16:57:11-04:00
date: 2022-05-20 16:57:11-04:00
draft: false
tags: ["Hugo", "Mastodon"]
math: false
medium_enabled: true
medium_post_id: a10174e115a2
tags:
- Hugo
- Mastodon
title: Displaying a Toot in Hugo
---
Mastodon for me is a nice friendly place and I enjoy participating in that community. With that, I want to be able to share the great toots out there in my own website as well as keep an archive of all the toots I made. This post will go over the code I wrote in Hugo to display a single toot into a blog post.
@ -264,4 +267,4 @@ I wrote [a python script](https://github.com/Brandon-Rozek/website/blob/9947478c
## Conclusion
I'm happy to see that Mastodon doesn't make it difficult to query and parse data from their platform. Within one toot there are a lot of possibilities for its type. For example, it can be a reply, a boost, or include a content warning label. To quickly get the basics (which includes replies), I ignored many of the fields. I would like to come back to this in the future and explore how to design for the other cases as well.
I'm happy to see that Mastodon doesn't make it difficult to query and parse data from their platform. Within one toot there are a lot of possibilities for its type. For example, it can be a reply, a boost, or include a content warning label. To quickly get the basics (which includes replies), I ignored many of the fields. I would like to come back to this in the future and explore how to design for the other cases as well.