Use variable for year in footer

This commit is contained in:
Philipp Oppermann
2016-02-14 15:42:52 +01:00
parent 269fd36df4
commit 24a65dc8ff

View File

@@ -1,10 +1,10 @@
</main>
<footer class="footer">
<small>
&copy; <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"}}
&copy;
<time datetime="{{ $year }}">{{ $year }}</time>. All rights reserved.
<a href="TODO">Contact</a>
</small>
</footer>