diff options
author | Cristian Klein <cristian.klein@elastisys.com> | 2020-09-02 11:33:13 +0300 |
---|---|---|
committer | Cristian Klein <cristian.klein@elastisys.com> | 2020-09-02 11:34:42 +0300 |
commit | 1a1d2dda0aee6ea8ba86b7f36c0405a8dbb3a46e (patch) | |
tree | 4b3dc53766c7ef4686e388c9057415617e7478e9 | |
parent | bfc381df056ea7cc62752693a0ccf2d7431d3e76 (diff) |
Allow overriding copyright line via .Site.Copyright
-rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 19fcd6d..8ba9f44 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ <footer> - <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ .Site.Title }}</b></a>. + <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>. {{- range .Site.Menus.footer }} <a href="{{ .URL }}"><b>{{ .Name }}</b></a>. {{- end }} |