mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
Switch themes to minimo
This commit is contained in:
18
themes/minimo/layouts/partials/sidebar/toggler.html
Normal file
18
themes/minimo/layouts/partials/sidebar/toggler.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- $sidebarEnabled := .Site.Params.sidebar.enable -}}
|
||||
{{- $sidebarWidgets := .Site.Params.widgets.sidebar -}}
|
||||
|
||||
{{- if ( and $sidebarEnabled $sidebarWidgets ) -}}
|
||||
|
||||
<a class='screen-reader-text' href='#content'>{{ i18n "skipToContent" }}</a>
|
||||
|
||||
<button id='sidebar-toggler' class='sidebar-toggler' aria-controls='sidebar'>
|
||||
<span class='screen-reader-text'>{{ i18n "toggleSidebar" }}</span>
|
||||
<span class='open'>
|
||||
{{- partial "svg/icon" "menu" -}}
|
||||
</span>
|
||||
<span class='close'>
|
||||
{{- partial "svg/icon" "x" -}}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user