Fix valign for git footer icons

This commit is contained in:
Alex Shpak 2019-10-08 23:25:33 +02:00
parent 00988ceee1
commit 1db63cef5c
4 changed files with 12 additions and 7 deletions

View file

@ -217,6 +217,7 @@ ul.pagination {
img { img {
height: 1em; height: 1em;
margin-right: $padding-8;
} }
} }

View file

@ -1 +1 @@
{"Target":"book.min.0ff68478dc11e28fc277189da0da67c6f39e056233a7854326a1822af251be29.css","MediaType":"text/css","Data":{"Integrity":"sha256-D/aEeNwR4o/CdxidoNpnxvOeBWIzp4VDJqGCKvJRvik="}} {"Target":"book.min.1b994bd28c6ce2255f069b6bf6837b4d396307637fc48d61dcb2a6caac26e031.css","MediaType":"text/css","Data":{"Integrity":"sha256-G5lL0oxs4iVfBptr9oN7TTljB2N/xI1h3LKmyqwm4DE="}}

View file

@ -3,16 +3,20 @@
{{ with .GitInfo }} {{ with .GitInfo }}
<div> <div>
{{ $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) }} {{ $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) }}
<a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener"> <a class="flex align-center" href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
<img src="{{ "svg/calendar.svg" | relURL }}" alt="Changed" /> {{ $date }} <img src="{{ "svg/calendar.svg" | relURL }}" alt="Changed" />
<span>{{ $date }}</span>
</a> </a>
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Params.BookEditPath }} {{ with .Site.Params.BookEditPath }}
<div> <div>
{{ if $.File }}<a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> {{ if $.File }}
<img src="{{ "svg/edit.svg" | relURL }}" alt="Edit" /> Edit this page <a class="flex align-center" href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener">
</a>{{ end }} <img src="{{ "svg/edit.svg" | relURL }}" alt="Edit" />
<span>Edit this page</span>
</a>
{{ end }}
</div> </div>
{{ end }} {{ end }}
</div> </div>