blob: d33168e51531a2f4e804728b489f0e9dc0427d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<div class="flex justify-between align-center">
{{ if not .IsHome}}
{{ if .Title }}
<h1>{{ .Title }}</h1>
{{ else }}
<h1>{{ .Site.Title }}</h1>
{{ end }}
{{ if and .GitInfo .Site.Params.BookRepo }}
<div>
{{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
<a class="flex align-center" href="{{ partial "docs/links/commit" . }}" title='last modified | {{ $date | lower }}' target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="book-icon">
<path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z" fill="currentColor"/>
<path fill="none" d="M0 0h24v24H0z"/>
</svg>
<span>{{ $date | lower }}</span>
</a>
</div>
{{ end }}
{{ end }}
</div>
|
; all rights regarding Text and Data Mining (TDM) are reserved.