{{ if and .GitInfo .Site.Params.BookRepo }}
{{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
{{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}
{{ $date }}
{{ end }}
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
{{ end }}
- Copyleft: {{ default .Site.Copyright .Params.copyleft }}
{{ if .Params.author }}- Author: {{ .Params.author }}
{{ end }}
{{ if .Params.written }}- Written: {{ .Params.written }}
{{ end }}
{{ if .Params.firstPublished }}- First published: {{ .Params.firstPublished }}
{{ end }}
{{ if .Params.source }}- Source: {{ .Params.source }}
{{ end }}
{{ if .Params.translated }}- Translated: {{ .Params.translated }}
{{ end }}
{{ if .Params.transcription }}- Transcription: {{ .Params.transcription }}
{{ end }}
{{ if .Params.proofed }}- Proofed: {{ .Params.proofed }}
{{ end }}
{{ $script := resources.Get "clipboard.js" | resources.Minify }}
{{ with $script.Content }}
{{ end }}