Adapt template to pelican