Merge pull request #5405 from jekyll/relative_url_and_absolute_url

Merge pull request 5405
This commit is contained in:
jekyllbot 2016-09-24 13:38:43 -07:00 committed by GitHub
commit 5c55d95446
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>