diff options
author | Li-aung 'Lewis' Yip <liaung@gmail.com> | 2016-12-30 15:17:28 +0300 |
---|---|---|
committer | Li-aung 'Lewis' Yip <liaung@gmail.com> | 2016-12-30 15:17:28 +0300 |
commit | 997a1f2a087d6c149f548f5b25ee2a640fe897df (patch) | |
tree | 1ad0210d211f7aad18d1efa14fe9c59fc6d23782 | |
parent | aad73de8b55269523e319cd4725c64c744011b6b (diff) |
Don't render "Author Name" if config.toml has Author.Name = "" (blank).
-rw-r--r-- | layouts/partials/footer.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3f53b35..b4d6151 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,8 +4,10 @@ <div class="footer-content"> <div class="pure-menu pure-menu-horizontal"> <ul> + {{ if .Site.Author.name }} <li class="pure-menu-heading" id="foot-name">{{ .Site.Author.name }}:</li> - + {{ end }} + {{ if .Site.Author.email }} <li class="pure-menu-item"> <a href="mailto:{{ .Site.Author.email }}" class="pure-menu-link">Email</a> |