add `permalink` param to templates