summaryrefslogtreecommitdiff
path: root/layouts/partials/single/dates.html
blob: 94913c399a4009d350c109014b7dcd26dab631aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{ $pubdate := .PublishDate.Format "2006-01-02" }}
{{ $lastmod := .Lastmod.Format "2006-01-02" }}

{{ $file := .File.LogicalName }}
{{ $path := .File.Path }}
{{ $lastmodhash := .GitInfo.Hash }}


<aside class="publish-date" style="margin-top: 35px; opacity: 0.8">
  
  {{ if eq $pubdate $lastmod }}                       
    Published: <time datetime="{{ $pubdate }}">
      <a href="{{$.Site.Params.repoUrl}}/commit/{{$lastmodhash}}">{{ $lastmod }}</a>.
    </time>
  {{ else }}
  
    Originally published: 

  <time datetime="{{ $pubdate }}">{{ $pubdate }}</time>;
  last updated: <time datetime="{{ $lastmod }}">
    <a href="{{$.Site.Params.repoUrl}}/commit/{{$lastmodhash}}">{{ $lastmod }}</a>
  </time>.
  {{ end }}

  This page is licensed under a <a href="https://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0 Deed</a> license.
  If you found this site interesting, you can <a id="moneyLink" href="https://ko-fi.com/mmspl">buy me a coffee</a>.
  You can contact me via <a href="/me/contact/">email</a> or using <a href="https://emacs.ch/@mms">mastodon</a>.
</aside>