Skip to content

Commit

Permalink
fix(docs): explicite $ use
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Jul 11, 2019
1 parent 5e81642 commit 4f2becf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{- $url := split .Permalink "/" -}}
{{- $page_slug := index $url (sub (len $url) 2) -}}

{{- range $group := .Site.Data.nav -}}
{{- range $group := $.Site.Data.nav -}}

{{- $link := $group.title -}}
{{- $link_slug := $link | urlize -}}
Expand All @@ -18,7 +18,7 @@
{{- $active_group := eq $.Page.Params.group $group_slug }}

<h6 class="mt-3 px-3">
<a class="text-body" href="{{ .Site.BaseURL }}/developer/{{ $group_slug }}/">
<a class="text-body" href="{{ $.Site.BaseURL }}/developer/{{ $group_slug }}/">
{{- $group.title -}}
</a>
</h6>
Expand All @@ -35,7 +35,7 @@ <h6 class="mt-3 px-3">
{{- $doc.title -}}
</span>
{{ else }}
<a class="nav-link px-4" href="{{ .Site.BaseURL }}/developer/{{ $group_slug }}/{{ $doc_slug }}/">
<a class="nav-link px-4" href="{{ $.Site.BaseURL }}/developer/{{ $group_slug }}/{{ $doc_slug }}/">
{{- $doc.title -}}
</a>
{{ end }}
Expand Down

0 comments on commit 4f2becf

Please sign in to comment.