Skip to content

Commit

Permalink
fix matcornic#27 New content structure incompatible with uglyURLs = true
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Jul 8, 2017
1 parent bd66f4d commit 025b3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
{{ range .sect.Sections}}

<li data-nav-id="{{.URL}}" class="dd-item
{{if hasPrefix $currentNode.URL .URL }}parent{{end}}
{{if .IsAncestor $currentNode }}parent{{end}}
{{if eq .UniqueID $currentNode.UniqueID}}active{{end}}
{{if .Params.alwaysopen}}parent{{end}}
">
<a href="{{ .RelPermalink}}">
<span>{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</span>

{{if or ( hasPrefix $currentNode.URL .URL) (.Params.alwaysopen) }}
{{if or (.IsAncestor $currentNode) (.Params.alwaysopen) }}
<i class="fa fa-angle-down fa-lg category-icon"></i>
{{else}}
<i class="fa fa-angle-right fa-lg category-icon"></i>
Expand Down

0 comments on commit 025b3a5

Please sign in to comment.