{{ if and .GitInfo .Site.Params.docsRepo -}} {{- $date := partial "main/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} {{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}