Gabz
Gabz

@amit i have another question, i. prices that the theme shows al the posts per day as a group, of sorts. Is it possible to somehow make it so when visiting the blog, only the posts for that day show, rather than every day like it is right now, does that makes sense? i’m wondering if that’s something that can be done with @manton ’s new plug-in, the custom page one 🤔

|
Embed
Progress spinner
jsonbecker
jsonbecker

@Gaby edit the theme pagination to just select first when grouping by day gohugo.io/functions…

|
Embed
Progress spinner
jsonbecker
jsonbecker

@Gaby I’ve considered this for my own blog (which was the first Micro.blog implementation of this pattern)

|
Embed
Progress spinner
Gabz
Gabz

@jsonbecker thank you, i will see if i can understand it well enough to implement it. wish me luck 🍀😁

|
Embed
Progress spinner
amit
amit

@Gaby as Jason said limit your selection to first. You give it a try. Else I will respond with line number and code once I am on system 🙂

|
Embed
Progress spinner
Gabz
Gabz

@amit for whatever reason, it doesn’t.. I can’t wrap my head around on what I am supposed to do with that code 😐

|
Embed
Progress spinner
amit
amit

@Gaby OK I didn’t get a chance to look at it. I will check and get you a solution 🙂

|
Embed
Progress spinner
amit
amit

@Gaby I wish I had this theme installed somewhere. Without that, I can suggest you make the change on this line. Replace by below.

{{ range last 1 $paginated.PageGroups }}
|
Embed
Progress spinner
pratik
pratik

@amit @gaby I tried this. It shows only one day’s posts but it’s a random day and not the current one. When you hit next, it doesn’t necessarily go to the previous day.

Do we have to enclose $paginated.PageGroups in parenthesis?

|
Embed
Progress spinner
Gabz
Gabz

@pratik @amit I noticed the same but I have just updated the template, sometimes after changes the indexing ot theme might do weird things, I will wait and see if it resolves itself

|
Embed
Progress spinner
pratik
pratik

@Gaby Just checked your blog. It’s doing the same as it did on my blog

|
Embed
Progress spinner
Gabz
Gabz

@pratik yup

|
Embed
Progress spinner