Merge pull request #12 from ghlecl/master
Using .URL in menu items instead of .Permalink
This commit is contained in:
commit
32ef8e0ba6
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{.Permalink}}">{{ .Name }}</a>
|
<a href="{{.URL}}">{{ .Name }}</a>
|
||||||
{{ if in ($.Scratch.Get "sections") .Name }}
|
{{ if in ($.Scratch.Get "sections") .Name }}
|
||||||
<a href="{{.Permalink}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
|
<a href="{{.URL}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue