{{ if site.Params.sidebar.show_relations | and .IsPage -}}
    <h3>Related Topics</h3>
    <ul>
        <li><a href="{{ site.BaseURL }}">Documentation overview</a><ul>
            {{ with .PrevInSection -}}
                <li>Previous: <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></li>
            {{- end }}
            {{ with .NextInSection -}}
                <li>Next: <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></li>
            {{- end }}
        </ul>
{{- end }}
