{{- /*
Site scripts. Each block is progressive enhancement: its buttons are hidden
in the markup and only revealed here, so a site with JavaScript disabled
never shows an inert button.
1. Copy-to-clipboard behaviour for code blocks rendered by
layouts/_markup/render-codeblock.html. A single delegated listener
handles every code block on the page. Disable the copy buttons entirely
with `[ananke] copy_code = false`.
2. Submenu toggles for the main menu rendered by
layouts/_partials/site-navigation.html. Only included if a `main` menu
entry has children.
Override this partial in your own project to add or replace site scripts.
*/ -}}
{{- if ne false site.Params.ananke.copy_code -}}
{{- end -}}
{{- $has_submenus := false -}}
{{- range site.Menus.main -}}
{{- if .HasChildren -}}{{- $has_submenus = true -}}{{- end -}}
{{- end -}}
{{- if $has_submenus -}}
{{- end -}}