diff options
author | sun6eal <jacob.sun.meta@gmail.com> | 2019-06-01 11:24:23 +0300 |
---|---|---|
committer | sun6eal <jacob.sun.meta@gmail.com> | 2019-06-01 11:24:23 +0300 |
commit | 5754a7a8ed8fe626c3aa73b70627f5001c55e3f4 (patch) | |
tree | 788aea85e7189a5b7b79fa710a2887d7bccf6655 | |
parent | 64051bc5a38770e0ecf48d33101f115e37cc109e (diff) |
update
-rw-r--r-- | layouts/partials/footer.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d2e301b..3e16d78 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,9 +24,13 @@ <li><a href="https://gohugo.io" class="btn">Hugo, {{ hugo.Version }}</a></li> <li><a href="https://github.com/jacobsun/edidor" class="btn">Theme: Edidor</a></li> <li> - <a href="#" class="btn">Last build: <time - datetime="{{ dateFormat "2006-01-02T15:04:05Z0700" hugo.BuildDate | safeHTML }}">{{ dateFormat "2006-01-02T15:04:05Z0700" hugo.BuildDate | safeHTML }}</time> - </a> + {{if hugo.BuildDate }} + <a href="#" class="btn">Last build: <time + datetime="{{ dateFormat "2006-01-02T15:04:05Z0700" hugo.BuildDate | safeHTML }}">{{ dateFormat "2006-01-02T15:04:05Z0700" hugo.BuildDate | safeHTML }}</time> + </a> + {{ else if .Site.IsServer }} + <a>Build date unavailable!</a> + {{ end}} </li> </ul> </footer> |