Skip to content

Commit

Permalink
fix(menu.js.ts.gotxt): counter for weight prop when looping resources
Browse files Browse the repository at this point in the history
  • Loading branch information
indaco committed Sep 16, 2022
1 parent ac6c1db commit 6799ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/internal/templates/site/menu.js.ts.gotxt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const menu: Array<IMenuItem> = [
name: "{{ $resource | Base | Capitalize }}",
url: "{{ $resource | ToURL }}",
external: false,
weight: {{ Sum 1 $index }}
weight: {{ Sum 2 $index }}
{{- if $withContent }}
{{- $resourceContents := index $contentValues $resource -}}
{{- $l := len $resourceContents -}}
Expand Down

0 comments on commit 6799ae0

Please sign in to comment.