In the academic theme, there’s a feature allowing one to set enableGitInfo = true to use the last git commit on a post to display modification times. But at the moment, this seems to be displayed instead of the actual post date.
I don’t 100% understand the syntax, but it looks like the code is here
<span class="article-date">
{{ $date := $page.Lastmod.Format site.Params.date_format }}
{{ if eq $page.Type "publication" }}
{{ $date = $page.Date.Format (site.Params.publications.date_format | default "January, 2006") }}
{{ else }}
{{ if ne $page.Params.Lastmod $page.Params.Date }}
{{ i18n "last_updated" }}
{{ end }}
{{ end }}
<time>{{ $date }}</time>
</span>
{{ end }}
I’d like to have both the post date and last updated appear, so instead of “Last updated on Jul 20, 2019”, it would be something like “Jul 17, 2019 (last updated Jul 20, 2019).”
(I opened an issue on the repo, but it got closed without comment, so I’m assuming this is not something the developer is interested in implementing).
On my site, which does not use the Academic theme, I include the following in a layout file to display both the publish date and the last-updated date.
Oh, didn’t notice they were separate :-/. Reading your issue, it looks like it might be slightly different from what I’m looking for, though related for sure. Will follow that issue with interest.
The issue has now been closed, because it’s apparently not a bug in Academic but in Hugo and/or Netlify. Gcushen kindly pointed to a workaround, however, which is to disable HUGO_ENABLEGITINFO in netlify.toml. Of course this would also disable the “last changed” date, but at least it brings the post date back.