From ba38e17b1b8140ae9254c1edc6c67ffdc50eca09 Mon Sep 17 00:00:00 2001 From: Collin Brooks Date: Sun, 11 Apr 2021 10:50:54 -0500 Subject: Add custom commit path for last edited link (#319) - A new `BookCommitPath` paramter was added that allows the 'commit' portion of the link to a page's last edited commit hash to be specified. - This is useful when github is not the default repository for a project. Co-authored-by: Collin Brooks --- layouts/partials/docs/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index f38e679..7f1a08a 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -6,7 +6,8 @@ {{ if and .GitInfo .Site.Params.BookRepo }}
{{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} - + {{- $commitPath := default "commit" .Site.Params.BookCommitPath -}} + Calendar {{ $date }} -- cgit v1.2.3