From: Nikita Shubin Date: Fri, 29 Mar 2024 09:26:30 +0000 (+0300) Subject: use gitinfo for date, author X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5080a74b7819f5b67d8ba9e9c3432f1260da6b19;p=brevno-suite%2Fthemes%2Fxmin use gitinfo for date, author Use info from git for author, date and first header of markdown file for page title. Signed-off-by: Nikita Shubin --- diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 06b290a..119f3c9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,8 +11,8 @@ {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} {{ range (where $pages "Section" "!=" "") }}
  • - {{ .Date.Format "2006/01/02" }} - {{ .Title | markdownify }} + {{ .GitInfo.AuthorDate.Format "2006/01/02" }} + {{ .MarkdownTitleInfo.Title | markdownify }}
  • {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de3f121..3fdce64 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,8 +1,8 @@ {{ partial "header.html" . }}