diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-08 23:25:33 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-08 23:25:33 +0200 |
commit | 1db63cef5cd631dd2fd73028183bc38ec816e92f (patch) | |
tree | 6037cbe51dca1d44f30dc65b874d6501e2627a09 /layouts/partials | |
parent | 00988ceee114705f04fadb339b4eed964408064f (diff) |
Fix valign for git footer icons
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/git-footer.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html index ab04d9b..bf3e4a7 100644 --- a/layouts/partials/docs/git-footer.html +++ b/layouts/partials/docs/git-footer.html @@ -3,16 +3,20 @@ {{ with .GitInfo }} <div> {{ $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"> - <img src="{{ "svg/calendar.svg" | relURL }}" alt="Changed" /> {{ $date }} + <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" /> + <span>{{ $date }}</span> </a> </div> {{ end }} {{ with .Site.Params.BookEditPath }} <div> - {{ if $.File }}<a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> - <img src="{{ "svg/edit.svg" | relURL }}" alt="Edit" /> Edit this page - </a>{{ end }} + {{ if $.File }} + <a class="flex align-center" href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> + <img src="{{ "svg/edit.svg" | relURL }}" alt="Edit" /> + <span>Edit this page</span> + </a> + {{ end }} </div> {{ end }} </div> |