No, I don’t think the ActivityPub (Mastodon-compatible) username is exposed in Hugo templates, unfortunately. It is public information, however, so, in theory, you could fetch it from the user’s profile page using resources.GetRemote and findRE.
But that is a bit of a hack and would slow down builds. Hopefully, @manton will consider exposing the ActivityPub username to Hugo templates instead.
Please don’t hesitate to mention stuff like this that is missing. Sometimes it’s on purpose but often just an oversight, like in this case of the ActivityPub username. I’ll get it added within the next couple of days. Thanks!
I’m still running into issues with stuff like this. I would really appreciate it if things like menus and parameters were more user friendly.
When I attempt to add parameters like @jsonbecker describes, I see multiple copies of the config.json. Is this the right one? I don’t know, but I don’t see the changes in my final rendering.
There should be only one copy in the top section of the custom design page that you edit. That’s the one that you’re using to add your own options. I would not look to mine for menus— I’m doing unique stuff for my menus. However, all things that are placed in the params map are accessible as .Site.params.$YOURKEYNAMEHERE.
These are not easy to make a menu— it’s literally an arbitrary data structure you can put whatever you want into that can be accessed by templates. There’s nothing special about it.
I think you’re way overcomplicating the theme setup. Use the plug in theme, then click “custom theme” then select the plug in theme you’re using. Edit only the config.json file under Custom templates. ONLY add the fields you want to add, don’t worry about what the theme version or Micro.blog version has. Anything in custom themes will be added to and override the same values in the theme config.json and the micro.blog config.json. You should never touch those nor do you need to copy those.