Reference

Guide

(file: …)

Creates a download link for any file

Attributes

class
rel
target
text
title

Examples and options

(file: companysecrets.pdf)
(file: companysecrets.pdf text: Download our company secrets)
(file: some/other/page/companysecrets.pdf text: Download our company secrets)
(file: http://example.com/companysecrets.pdf text: Download their company secrets)
(file: companysecrets.pdf title: Download our company secrets)
(file: cv.pdf text: My CV rel: me)
(file: companysecrets.pdf target: _blank)
(file: companysecrets.pdf class: download)

Source code

kirby/config/tags.php#L40