I don’t understand this since they’re both Hugo blogs, both using markdown - why would it truncate the post and lose all the formatting? Is this a problem with my blog? Or with micro.blog?
The RSS feed only contains post excerpts with HTML stripped. Here’s what the post from your example looks like in the feed:
<description>Trying to learn about computers at the age of 48 is sometimes hilarious. Me: Okay so how do you learn terminal commands? Is that the CS50 course at Harvard? Because I don’t really enjoy programming so I’m not sure if I should keep going with that - do we learn other things later? Is that where I’d learn terminal commands? I can skip ahead, it’s a free course. Greg (husband of 27 years, software developer): Probably, yes, they’ll get to that.</description>
The person(s) who implemented the default Hugo RSS template decided to only include post summaries. To fix this, you will have to override that template with your own and include entire posts: HTML and all.
To anyone ending up here in the future: this is a feature specific to the PaperMod theme. It already provides a custom RSS template with support for full-length posts. If your blog uses another theme, the ShowFullTextinRSS parameter might be named differently or not exist at all.
I’m having difficulties getting the RSS feed from my personal Hugo website (also uses the PaperMod theme) to show up in Micro.blog and get cross-posted to BlueSky, Mastodon, and Threads.
@jsonbecker I see that my Hugo PaperMod theme says to include outputs.home.JSON in my hugo.yaml file in order to enable search functionality. So I’ve got a JSON feed that gets generated here: https://joshuapsteele.com/index.json. But that doesn’t seem to work with Micro.blog, either.
Ultimately, I’m not 100% sure what to put in my /layouts and hugo.yaml to accomplish what you’re suggesting.
I’m guessing I need to add a custom layout like the microdotblog/theme-blank/layouts/index.json to my code somewhere, so that my site generates a JSON feed that Micro.blog can interpret correctly. But I’m also guessing I need to leave my /themes/PaperMod/layouts/_default/index.json file alone, so that it doesn’t bork my site’s search functionality.
Also, if possible, I’d just like my JSON feed for Micro.blog (and my RSS feed for everyone else) to include all my stuff under /content/blog
Your layout is a little funky and build process isn’t what I do locally, but:
Your Layout for PaperMod/layouts/_default/index.json is a bunch of JSON, but it’s not a to-spec JSONFeed. It’s being generated for search (and is frustrating honestly that it exists. Boo on them).
The easiest thing would be to create a new layout called something like posts.json and add it as an output format. See the things named like “ArchiveJSON” in the Micro.blog configuration I linked to? You can provide a path and a name and all that to have your secondary JSON feed for micro.blog the same way the PhotosJSON or ArchiveJSON are made.
For what it’s worth, PaperMod is an incredibly complex theme to run on your own and customize and not a great choice for a novice IMO. I’ve been using Hugo for like 10 years and struggle to follow all of its features, and I’ve built several (less complex) themes from scratch.
Getting help on PaperMod you’ll be more successful on the Hugo forums, especially since you’re building outside of Micro.blog and none of what you’re asking about (though not obvious) is actually Micro.blog specific.