diff options
author | Yury Antonov <yantonov@yandex.ru> | 2019-12-19 17:36:40 +0300 |
---|---|---|
committer | Yury Antonov <yantonov@yandex.ru> | 2019-12-19 17:36:40 +0300 |
commit | 93f36aafb180016cf86eec17f6dc8e6eef181175 (patch) | |
tree | 48b69321d26fe3471e9977f9e55806c55ff2a952 | |
parent | 25a63ae8e47e8b0e846f687b9e97206dcf6e54f5 (diff) |
avatar points to home page, if profile.follow is equal to root
-rw-r--r-- | layouts/partials/header.html | 4 |
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 + |