Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
{{ $currentTopic := .topic }}
{{ $currentModule := .module }}
{{ $topics := sort $currentModule.CurrentSection.Pages ".Params.index" }}
{{ range $index, $topic := $topics }}
{{ if eq $topic $currentTopic }}
<div class="flex">
{{ if ne (add $index 1) (len $topics) }}
{{ $next := index $topics (add $index 1) }}
<a href="{{ $next.RelPermalink }}" class="btn">Next Tutorial: {{ $next.Title }} →</a>
{{ else }}
<a href="{{ $currentModule.RelPermalink }}" class="btn btn-secondary">Return to {{ $currentModule.Title }} →</a>
{{ end }}
</div>