You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

git-footer.html 845B

12345678910111213141516171819
  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. {{- $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) -}}
  6. <a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
  7. <img src="{{ "svg/code-merge.svg" | relURL }}" /> Last modified on {{ $date }} in {{ .AbbreviatedHash }}
  8. </a>
  9. </div>
  10. {{ end }}
  11. {{ with .Site.Params.BookEditPath }}
  12. <div>
  13. <a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener">
  14. <img src="{{ "svg/code-fork.svg" | relURL }}" /> Edit this page
  15. </a>
  16. </div>
  17. {{ end }}
  18. </div>
  19. {{ end }}