pratik
pratik

@Mtt What's the best way to use the microhook-post-list.html? I'm thinking of creating that template file, cut-paste the contents of Tiny's layouts/index.html, removing all references to other microhooks, and then starting to customize it. I want to address the first two items in this post.

|
Embed
Progress spinner
Mtt
Mtt

@pratik I think your approach would be a good starting point.

I’d also keep your old index.html as a reference point. I have a feeling that could save you lots of time in the process.

And don’t discount how much ChatGPT could help in the process. The other day, I had it read about Microhooks and asked it to use them to create a few things as a test. It nailed it every time.

|
Embed
Progress spinner
pratik
pratik

@Mtt Thanks. Will do. BTW, in the index.html code, I saw a reference to Bluesky as well. Is that something in progress? I didn't see any references in the documentation for it.

|
Embed
Progress spinner
Mtt
Mtt

@pratik No, that is/was an add-in for people using Bridgy with Bluesky. It’ll be removed in the next version since Micro.blog is now handling that better on its own.

|
Embed
Progress spinner
pratik
pratik

@Mtt Got it. I imagined you would be doing something with that soon.

|
Embed
Progress spinner
pratik
pratik

@Mtt Ok. It took me a while to understand what Hugo statements must have an {{ end }} 🫠 but I figured that out and tagged each one of them so I could safely remove references to other microhooks (wondering if I can keep them except for the self-referential microhook-post-list.html at the top). But the homepage is blank and Micro.blog is not throwing up any errors in the log for me to debug. So kinda stuck here.

This is the code that's currently in layouts/partials/microhook-post-list.html. I have not yet started doing my customization. Any tips to shake me loose?

|
Embed
Progress spinner
Mtt
Mtt

@pratik You're very close. You need to remove {{ define "main" }} and its corresponding {{ end }}. That is provided by the theme even if you use the microhook. Once removing that, it should start working for you. I used the exact code (minus that revision) and it works fine.

|
Embed
Progress spinner
pratik
pratik

@Mtt Woo hoo! Can't believe I was that close. Perhaps I should've paid attention in the class that talked about {{ define "main" }} Now onward to break it again.

|
Embed
Progress spinner
Mtt
Mtt

@pratik A Kintsugi approach is often the best way.

|
Embed
Progress spinner