Add documentation for relative_url and absolute_url

This commit is contained in:
Parker Moore 2016-09-23 14:22:57 -07:00
parent fa96843555
commit 8e027fced9
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 28 additions and 0 deletions

View File

@ -21,6 +21,34 @@ common tasks easier.
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<td>
<p class="name"><strong>Relative URL</strong></p>
<p>Prepend the <code>baseurl</code> value to the input. Useful if your site is hosted at a subpath rather than the root of the domain.</p>
</td>
<td class="align-center">
<p>
<code class="filter">{% raw %}{{ "/assets/style.css" | relative_url }}{% endraw %}</code>
</p>
<p>
<code class="output">/my-baseurl/assets/style.css</code>
</p>
</td>
</tr>
<tr>
<td>
<p class="name"><strong>Absolute URL</strong></p>
<p>Prepend the <code>url</code> and <code>baseurl</code> value to the input.</p>
</td>
<td class="align-center">
<p>
<code class="filter">{% raw %}{{ "/assets/style.css" | absolute_url }}{% endraw %}</code>
</p>
<p>
<code class="output">http://example.com/my-baseurl/assets/style.css</code>
</p>
</td>
</tr>
<tr> <tr>
<td> <td>
<p class="name"><strong>Date to XML Schema</strong></p> <p class="name"><strong>Date to XML Schema</strong></p>