Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/persian-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRononDex <tinoheuberger@protonmail.com>2021-12-20 14:23:29 +0300
committerRononDex <tinoheuberger@protonmail.com>2021-12-20 14:25:10 +0300
commit3f8c78dbd768ca802fdb46ae1d0b4109ca9e736f (patch)
treeb876ab542fab811d9576b2ed4864053e479ddb35
parente73fa77a2e627ead7a64b3063091d41f69d1ed5e (diff)
Hide the author linkd and logo if not defined for a post
-rw-r--r--layouts/_default/single.html4
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>