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

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 149f8c5..20dfb84 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
{{- if and (.Site.Params.profile) (.Site.Params.profile.enabled)}}
{{- $profile := .Site.Params.profile }}
<div class="profile-block text-center">
- <a id="avatar" href="{{- $profile.follow }}" target="_blank">
+ <a id="avatar" href="{{- $profile.follow }}" target="{{ cond (eq $profile.follow "/") "" "_blank" }}">
<img class="img-circle img-rotate" src="{{- $profile.avatar | absURL }}" width="200" height="200">
</a>
<h2 id="name" class="hidden-xs hidden-sm">{{- $profile.author }}</h2>
@@ -42,4 +42,4 @@
</nav>
</div>
</header>
- \ No newline at end of file
+