From 8927a3c672a6e7a40519626b7df31d7dace800a9 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 10 Apr 2020 20:24:36 +0200 Subject: #162, Add docs/date partial, for date customization --- layouts/partials/docs/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials/docs/footer.html') diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index f9ca80d..303d2bf 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -5,7 +5,7 @@ {{ if and .GitInfo .Site.Params.BookRepo }}
- {{ $date := .GitInfo.AuthorDate.Local.Format (default "January 2, 2006" .Site.Params.BookDateFormat) }} + {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} Calendar {{ $date }} -- cgit v1.2.3