diff options
author | RononDex <tinoheuberger@protonmail.com> | 2021-12-20 14:23:29 +0300 |
---|---|---|
committer | RononDex <tinoheuberger@protonmail.com> | 2021-12-20 14:25:10 +0300 |
commit | 3f8c78dbd768ca802fdb46ae1d0b4109ca9e736f (patch) | |
tree | b876ab542fab811d9576b2ed4864053e479ddb35 | |
parent | e73fa77a2e627ead7a64b3063091d41f69d1ed5e (diff) |
Hide the author linkd and logo if not defined for a post
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 09b5afd..06ef290 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,8 +31,10 @@ </li> {{ end }} </ul> + {{ if (isset .Params "author") }} <span><i class="ti-user mr-2"></i><a - href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.author }}</a></span> + href="{{ `author/` | relLangURL }}{{ .Params.author | urlize }}/">{{ .Params.author }}</a></span> + {{ end }} </div> </div> </div> |