summaryrefslogtreecommitdiff
path: root/layouts/partials/docs/footer.html
blob: 95ecb01741c5140d1f90051c55cca4c0bdc4796d (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
40
41
42
43
<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 }}
  {{ if .Params.originalWebpage }}
  <li>Original webpage: <a href="{{ .Params.originalWebpage }}">{{ .Params.originalWebpage }}</a></li>
  <li>Converted to markdown for <a href="https://marx.cafe">Marx Cafe</a> </li>
  {{ end }}
</ul>

</div>

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