Skip to content

Kirby 4.5.0

(email: …)

Creates an email address link

Attributes

In addition to the main email, option, the tag supports the following attributes: class rel target text title

Attribute Description Default
class The class which is added to email link null
rel The rel attribute that is added to email link null
target The target attribute that is added to email link null
text The text that is added to email link null
title The title attribute that is added to email link null

Kirby will automatically encode your email addresses, so they won't be that easily parsed and misused by spam bots.

Attribute defaults from config

You can customize the defaults of this tag's attributes via the kirbytext.email config option.

Examples

(email: bastian@getkirby.com)
(email: bastian@getkirby.com text: Send me an email)

Email with a title attribute

(email: bastian@getkirby.com text: Send me an email title: Contact me)

Email with a rel attribute

(email: bastian@getkirby.com text: Send me an email rel: me)

Email with a custom CSS class

(email: bastian@getkirby.com text: Send me an email class: email)