1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'

This commit is contained in:
Bjørn Erik Pedersen
2017-07-31 09:21:24 +02:00
50 changed files with 390 additions and 1754 deletions

View File

@@ -43,14 +43,12 @@ The following is an example of a sidebar partial that may be used in conjunction
This partial would produce the following HTML output:
{{% output file="bad-url-sidebar-menu-output.html" %}}
```
{{< output file="bad-url-sidebar-menu-output.html" >}}
<!-- This unordered list may be part of a sidebar menu -->
<ul>
<li><a href="#ZgotmplZ">IRC: #golang at freenode</a></li>
</ul>
```
{{% /output %}}
{{< /output >}}
The odd output can be remedied by adding ` | safeURL` to our `.Title` page variable:
@@ -63,13 +61,11 @@ The odd output can be remedied by adding ` | safeURL` to our `.Title` page varia
With the `.URL` page variable piped through `safeURL`, we get the desired output:
{{% output file="correct-url-sidebar-menu-output.html" %}}
```
{{< output file="correct-url-sidebar-menu-output.html" >}}
<ul class="sidebar-menu">
<li><a href="irc://irc.freenode.net/#golang">IRC: #golang at freenode</a></li>
</ul>
```
{{% /output %}}
{{< /output >}}
[configuration]: /getting-started/configuration/
[menus]: /content-management/menus/