{{ define "main" }}

{{ .RelPermalink }}

{{ .Title }}

published
{{- with .Params.updated }}
updated
{{- end }}
license
{{ .Params.license }}
{{ partial "document-view.html" . }}
{{ .Content }} {{- $pages := where site.RegularPages "Section" "journal" -}} {{- $pages = $pages.ByDate -}} {{- $currentIndex := -1 -}} {{- range $index, $candidate := $pages -}} {{- if eq $candidate.RelPermalink $.RelPermalink }}{{ $currentIndex = $index }}{{ end -}} {{- end -}} {{- if ge $currentIndex 0 }} {{- end }}
{{ end }}