Links

There are 2 types of links:

  • Internal links, which allow navigating from one page to another page on your site.
  • External links which direct to another website.

Internal Links

To create an internal link, you can provide the path from the root of the site:

To insert a link to /url/of/the/page,
use the shortcode [link "/url/of/the/page" /]:
The link label will be the title of the page.

input
Link to the page [link "/documentation" /]
output
Link to the page Documentation

You can add a label to the link by passing a 2nd parameter if the page title is not suitable.

input
Link to the page [link "/documentation" "CMS documentation" /]
output
Link to the page CMS documentation

Link to the Homepage:

input
Link to the [link "/" "Homepage" /]
output
Link to the Homepage

Relative Links

Using .., you can move up one level. You can target the parent page:

Link to the parent page:

input
Link to the page: [link ".."  /]
output
Link to the page: Shortcodes

External Links

don't forget http(s)://

input
Link to [link "https://google.com" "Google" /]
Link to [link "https://google.com" /]
output
Link to Google
Link to https://google.com

You can enclose a URL in angle brackets, it will become clickable:
<https://google.com> will give https://google.com

Links with Complex Contents

You can also create a link with content other than text:

input
[link  "https://namaskar.fr" ] 
[img "sites/namaskar.fr.jpg" caption="Namaskar.fr"]
[/link]