TravisAvey / website-baseline

Website Basline
MIT License
0 stars 0 forks source link

Pagination #125

Open TravisAvey opened 5 months ago

TravisAvey commented 5 months ago

Pagination might be needed for posts on the dashboard and front end.

Might have to not use htmx on those pages?

TravisAvey commented 5 months ago

maybe hx-boost could help here. https://htmx.org/docs/#boosting

Htmx supports “boosting” regular HTML anchors and forms with the hx-boost attribute. This attribute will convert all anchor tags and forms into AJAX requests that, by default, target the body of the page.

Here is an example:

<div hx-boost="true">
    <a href="/blog">Blog</a>
</div>

The anchor tag in this div will issue an AJAX GET request to /blog and swap the response into the body tag.