diff options
| author | Track3 <pengliabc@live.cn> | 2018-12-28 22:52:23 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2018-12-28 22:52:23 +0800 |
| commit | 98c3c6449993ea54309c57665ff474a9be1eec4d (patch) | |
| tree | d74a470c37b788830fc8e46ab53b1299e3ed1fa3 /layouts/partials/header.html | |
| parent | 2b5999616dd0545c0e07bb69e74dffdc4b0448b6 (diff) | |
| download | hermit-98c3c6449993ea54309c57665ff474a9be1eec4d.tar.gz | |
Add toggle toc button
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f3d5e68..61415c6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,6 +14,9 @@ {{ 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 .Params.toc -}} + <button class="hdr-btn desktop-only-ib" onclick="toggleToc()"><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-list"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3" y2="6"></line><line x1="3" y1="12" x2="3" y2="12"></line><line x1="3" y1="18" x2="3" y2="18"></line></svg></button> + {{- end }} {{- with .Site.Params.social -}} <span class="hdr-social hide-in-mobile">{{ partialCached "social-icons.html" . }}</span> {{- end -}} |
