Standard Tags
Attributes
The attributes below can be used to render properties of the current context. That may be the page currently being rendered, or some specified relation (see Context, below)
Title
<code><r:title /></code>
tag is replaced by the title defined for the current page.
<code>Example Page</code>
Url
<code><r:url /></code>
renders the page url without the hostname and protocol.
<code>/path/to/example-page/</code>
Slug
<code><r:slug /></code>
renders the page slug
<code>example-page</code>
Author
<code><r:author /></code>
renders the author of the page
Link
<code><r:link /></code>
produces a hypertext link with the page title as the link text.
<code><a href="/path/to/page/"> page_title </a></code>
<code><r:link> link with text </r:link></code>
allows you to specify the link text
<code><a href="/path/to/page/"> link with text </a></code>
<code><r:link anchor="the_anchor"> link to anchor with text </r:link></code>
link to a specified anchor within the page
<code><a href="/path/to/page/#the_anchor"> link to anchor with text </a></code>
<code><r:link class="external_link"></code>
class, id or other tag attributes can be added to control the tag
<code><a href="/url/to/page/" class="external_link"> page_title </a></code>
Context
By default, any attributes refer to the current page being rendered. However, this context can be modified.
Parent
<code><r:parent> </r:parent></code>
All attributes within scope now refer to the parent of the page being rendered.
Children
<code><r:children:each [options]> </r:children:each></code>
Content of the scope is repeated for each immediate child of the current context. All attributes are with respect to the current context. For example:
Example Page
Child 1
Child 2
Child 3
Valid options are:
- limit=”n”—iterate through a maximum of n children
- offset=”n”—start at the nth child
- order=”asc” | “desc”@—in ascending (default) or descending order
- by=”title”—sorted by title (default is published date)
