mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use variable for year in footer
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<small>
|
||||
© <time datetime="{{ .Site.LastChange.Format "2006" }}">
|
||||
{{ .Site.LastChange.Format "2006" }}
|
||||
</time>. All rights reserved. <a href="TODO">Contact</a>
|
||||
<small>{{ $year := .Site.LastChange.Format "2006"}}
|
||||
©
|
||||
<time datetime="{{ $year }}">{{ $year }}</time>. All rights reserved.
|
||||
<a href="TODO">Contact</a>
|
||||
</small>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user