aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/footer.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-04-10 20:24:36 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-04-10 20:24:36 +0200
commit8927a3c672a6e7a40519626b7df31d7dace800a9 (patch)
treea67d6be6bf06c87f1abe50b29ca6b4580e0a96a8 /layouts/partials/docs/footer.html
parent6234f1265497cdce9cbaa0ebf0c06137aed9fdca (diff)
#162, Add docs/date partial, for date customization
Diffstat (limited to 'layouts/partials/docs/footer.html')
-rw-r--r--layouts/partials/docs/footer.html2
1 files changed, 1 insertions, 1 deletions
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 }}
<div>
- {{ $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) -}}
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/commit/{{ .GitInfo.Hash }}" title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener">
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" />
<span>{{ $date }}</span>