Skip to content

Kirby 4.1.2

(link: …)

Creates a link

Attributes

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

Attribute Description Default
class The class which is added to link element null
lang The language for link to a page in another language (only on multi-language sites) null
rel The rel attribute that is added to link element null
role The role attribute that is added to link element null
target The target attribute that is added to link element null
title The title attribute that is added to link element null
text The text that is added to link element null

Attribute defaults from config

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

Examples

(link: http://wikipedia.org text: Wikipedia)
(link: some/page text: Link to some internal page)
(link: some/page lang: de)
(link: #some-section text: Link to some section on the same page)
(link: http://wikipedia.org text: Wikipedia target: _blank)
(link: http://wikipedia.org text: Wikipedia title: Go to Wikipedia)
(link: http://yourdomain.com text: My website rel: me)
(link: http://wikipedia.org text: Wikipedia class: mylink)
(link: some/page text: Some page in German lang: de)
(link: delete-account text: Delete my account role: button)