Add date
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
{{ $dateMachine := now | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := now | time.Format "2 January 2006" }}
|
||||
Made with ♥ using <a href="https://gohugo.io" target="_blank">Hugo</a> <br/>
|
||||
Rebuilt on <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
Built <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -23,10 +23,20 @@
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
<div class="time" style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
|
||||
<div class="footer-links" style="text-align: left;">
|
||||
Help improve this page!<br/>
|
||||
Submit an
|
||||
<a href="https://gitmoss.fyi/fmtools/content/issues/new?&title=[FIX]%20{{ .Title | urlquery }}" target="_blank">issue</a> or
|
||||
<a href="https://gitmoss.fyi/fmtools/content/fork" target="_blank">pull request</a>.
|
||||
</div>
|
||||
{{ if .Date }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
|
||||
<div class="footer-date" style="text-align: right;">
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format "2 January 2006" }}
|
||||
Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user