{{- $params := partial "function/params.html" -}} {{- /* Git info */ -}} {{- $gitRepo := "" -}} {{- $blobURL := "" -}} {{- $sourceURL := "" -}} {{- $editURL := "" -}} {{- $reportURL := "" -}} {{- with .Site.Params.gitInfo -}} {{- if .Repo -}} {{- $gitRepo = strings.TrimSuffix "/" .Repo -}} {{- $blobURL = printf "%v/blob/%v/%v/{path}" $gitRepo .Branch .Dir -}} {{- $editURL = printf "%v/edit/%v/%v/{path}" $gitRepo .Branch .Dir -}} {{- $reportURL = printf "%v/issues/new?%v" $gitRepo .IssueTpl -}} {{- end -}} {{- end -}}
{{- if not $params.password -}} {{- end -}}
{{ T "single.back" }} | {{ T "single.home" }}
{{- $navigation := .Site.Params.navigation -}}
{{- $pages := .Scratch.Get "mainSectionPages" -}} {{- $prev := $pages.Prev . -}} {{- $next := $pages.Next . -}} {{- /* Show the post navigation in section pages */ -}} {{- if $navigation.inSection -}} {{- $prev = .PrevInSection -}} {{- $next = .NextInSection -}} {{- end -}} {{- /* Reverse the next/previous post navigation order */ -}} {{- if $navigation.reverse -}} {{- $prev = $pages.Next . -}} {{- $next = $pages.Prev . -}} {{- end -}} {{- with $prev -}} {{- $capitalizeTitles := .Param "capitalizeTitles" -}} {{- end -}} {{ with $next }} {{- $capitalizeTitles := .Param "capitalizeTitles" -}} {{- end -}}