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

github.com/Track3/hermit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-12-31 18:23:46 +0300
committerTrack3 <pengliabc@live.cn>2018-12-31 18:23:46 +0300
commit8a3041d5ee8cec1a1574bbb901f0139873e53bb7 (patch)
tree15436038ef854a27482b6b31b3139b80ef38f3a2
parent4b2192f2fa89f10d09fabc48105465865ef01943 (diff)
Fix header toggle bg-image buttonv1.2.0
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 9eb24f2..47b04b7 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -11,7 +11,7 @@
</nav>
</div>
<div class="hdr-right hdr-icons">
- {{ with .Params.featuredImg -}}
+ {{ if (or .Params.images .Params.featuredImg) -}}
<button class="hdr-btn" onclick="showFeaturedImg()" title="{{i18n "featuredImage"}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-image"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg></button>
{{- end }}
{{- with .Params.toc -}}