diff options
| author | Track3 <pengliabc@live.cn> | 2018-10-23 13:15:50 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2018-10-23 13:15:50 +0800 |
| commit | 44dbcd6f34c676cefbacf12f18d9883c597a681a (patch) | |
| tree | 86610dc396b64baf3f2c4ef00a3b84dc6c1d2bde /layouts/partials/header.html | |
| download | hermit-44dbcd6f34c676cefbacf12f18d9883c597a681a.tar.gz | |
First commit
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..7e8f747 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,34 @@ + <header id="site-header" class="animated slideInUp faster"> + <div class="hdr-wrapper section-inner"> + <div class="hdr-left"> + <div class="site-branding"> + <a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a> + </div> + <nav class="site-nav hide-in-mobile"> + {{- range .Site.Menus.main }} + <a href="{{ .URL }}">{{ .Name }}</a> + {{- 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> + </div> + </header> + <div id="mobile-menu" class="animated fast" style="display: none;"> + <ul> + {{- range .Site.Menus.main }} + <li><a href="{{ .URL }}">{{ .Name }}</a></li> + {{- end }} + </ul> + </div>
\ No newline at end of file |
