aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-12-12 00:02:36 +0800
committerTrack3 <pengliabc@live.cn>2018-12-12 00:02:36 +0800
commit3bb532df30e5ed3cf3713dc450a1a0ec99172e08 (patch)
tree4bb9b5db6ff517877618c0e03dbc2eca3de0d076 /layouts/partials/header.html
parentcaf088cbfb4899e4d86fcb18373c4093f32c739b (diff)
downloadhermit-3bb532df30e5ed3cf3713dc450a1a0ec99172e08.tar.gz
Improve code quality & consistency
* Add EditorConfig * Rebuild animate.css: remove an unused animation * Slightly rewrite header part
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html22
1 files changed, 9 insertions, 13 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 7e8f747..8c241fe 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -10,18 +10,14 @@
{{- end }}
</nav>
</div>
- <div class="hdr-right">
- <div class="hdr-icons">
- {{- with .Params.featuredImg }}
- <button id="show-img-btn" class="hdr-btn" onclick="showFeaturedImg()"><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 .Site.Params.social }}
- <span class="hide-in-mobile">
- {{- partialCached "social-icons.html" . -}}
- </span>
- {{- end }}
- <button id="menu-btn" class="hdr-btn"><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-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></button>
- </div>
+ <div class="hdr-right hdr-icons">
+ {{- with .Params.featuredImg }}
+ <button class="hdr-btn" onclick="showFeaturedImg()"><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 .Site.Params.social -}}
+ <span class="hdr-social hide-in-mobile">{{ partialCached "social-icons.html" . }}</span>
+ {{- end -}}
+ <button id="menu-btn" class="hdr-btn"><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-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></button>
</div>
</div>
</header>
@@ -31,4 +27,4 @@
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{- end }}
</ul>
- </div> \ No newline at end of file
+ </div>