summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/git-footer.html14
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>