@alice PicoCMS uses Twig for templates, right? You could probably just take my templates and modify them to use variables emitted by PicoCMS. They're available from my GitHub repository.
https://github.com/matthewgraybosch/oedipus-pelican-starter/tree/master/oedipus/templates/activitypub/