aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/footer.html
blob: a46795c3bb51df55d1c273fb1becdb6153a2db30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="flex flex-wrap justify-between">

{{ if and .GitInfo .Site.Params.BookRepo }}
  <div>
    {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
    {{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}
    <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }}" title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener">
      <img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" />
      <span>{{ $date }}</span>
    </a>
  </div>
{{ end }}

{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
  <div>
    <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir | default "content" }}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener">
      <img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="Edit" />
      <span>{{ i18n "Edit this page" }}</span>
    </a>
  </div>
{{ end }}

<ul>
  <li>Copyleft: {{ default .Site.Copyright .Params.copyleft }}</li>
  {{ if .Params.author }}<li>Author: {{ .Params.author }}</li>{{ end }}
  {{ if .Params.written }}<li>Written: {{ .Params.written }}</li>{{ end }}
  {{ if .Params.firstPublished }}<li>First published: {{ .Params.firstPublished }}</li>{{ end }}
  {{ if .Params.source }}<li>Source: {{ .Params.source }}</li>{{ end }}
  {{ if .Params.translated  }}<li>Translated: {{ .Params.translated }}</li>{{ end }}
  {{ if .Params.transcription }}<li>Transcription: {{ .Params.transcription }}</li>{{ end }}
  {{ if .Params.proofed }}<li>Proofed: {{ .Params.proofed }}</li>{{ end }}
</ul>

</div>

{{ $script := resources.Get "clipboard.js" | resources.Minify }}
{{ with $script.Content }}
  <script>{{ . | safeJS }}</script>
{{ end }}