git-footer.html 793 B

123456789101112131415161718
  1. {{ if or .GitInfo .Site.Params.BookEditPath }}
  2. <div class="align-center book-git-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}">
  3. {{ with .GitInfo }}
  4. <div>
  5. <a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ .AuthorDate.Local.Format "January 2, 2006 15:04 MST" }} by {{ .AuthorName }}' target="_blank" rel="noopener">
  6. <img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ .AuthorDate.Local.Format "Last Modified Jan 2, 2006" }}
  7. </a>
  8. </div>
  9. {{ end }}
  10. {{ with .Site.Params.BookEditPath }}
  11. <div>
  12. <a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener">
  13. <img src="{{ "svg/code-fork.svg" | relURL }}" /> Edit this page
  14. </a>
  15. </div>
  16. {{ end }}
  17. </div>
  18. {{ end }}