On Sat, 1 Apr 2023 at 19:33, Hartmut Goebel
<[email protected]> wrote:
>
> Hi,
>
> I wold like to list the newest 5 blog-posts in a side-column on every
> page. Can I use sort-codes in templates?
>
> What is the best way to do this?
>
> (I'm aware that this most probably will lead to a full rebuild when
> adding posts.)

Nikola explicitly does not support anything that would cause full
rebuilds to occur often, so the inclusion of the sidebar would happen
outside of Nikola. You could use something like the sidebar plugin
[0], and then include it in your pages via server-side includes or
front-end JavaScript.

[0]: https://plugins.getnikola.com/v7/sidebar/
-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7Kyc8m6-t3MnxKzHEXTLKSYtJBZ%3DRHfF5bzh3P%3DZq7B_g%40mail.gmail.com.

Reply via email to