{{/* Override of Hextra's layouts/docs/single.html. The only change from the theme's version is the "Edit this page on GitHub" link: Hextra renders it inside _partials/toc.html, which pins it under the "On this page" column. Here it sits at the end of the content instead. site.Params.editURL.enable is false so the theme's copy in the TOC is suppressed; the base URL comes from site.Params.editURL.base. */}} {{ define "main" }}
{{ partial "sidebar.html" (dict "context" .) }} {{ partial "toc.html" . }}
{{ partial "breadcrumb.html" (dict "page" . "enable" true) }}
{{ if .Title }}

{{ .Title }}

{{ partial "components/page-context-menu" . }}
{{ end }} {{ .Content }}
{{/* Page actions. Hextra puts these under the "On this page" column; here they sit at the end of the content. The theme's own copies are suppressed — editURL.enable is false, and #backToTop is hidden in custom.css. */}} {{- $editBase := site.Params.editURL.base -}}
{{- with .File -}} {{- with $editBase -}} Edit this page on GitHub → {{- end -}} {{- end -}} Scroll to top ↑
{{ partial "components/last-updated.html" . }} {{- if (site.Params.page.displayPagination | default true) -}} {{- partial "components/pager.html" . -}} {{- end -}} {{ partial "components/comments.html" . }}
{{ end }}