Summary | Creates a link to a given path |
---|---|
Tag names | link |
Configuration prefix | tag.link |
Mandatory options |
tag.link.path |
Used options |
tag.link.path tag.link.attr |
Provided by bundle | built-in |
API doc | Webgen::Tag::Link |
Description
This tag is used for generating a link to an (absolute) (localized) canonical name.
Usage
The generated link will behave exactly like the ones generated by, for example, the breadcrumb trail tag or the menu tag.
The configuration option tag.link.attr lets you specify additional HTML options that should be set on the generated link. It can also be used to set the link text via the special “link_text” key!
Examples
{link: /features.html}
- Features
{link: link.html}
- tag.link
{link: link.html#description}
- Description
{link: ../}
- Extensions
{link: {path: relocatable.html, attr: {link_text: A nicer link text, title: Just a title}}}
- A nicer link text