{{- $backToTop := .Site.Params.backToTop -}} {{- $params := partial "function/params.html" -}} {{- $comment := .Store.Get "comment" -}} {{- if $backToTop.enable | or $comment.enable -}}
{{- /* back to top button */ -}} {{- if $backToTop.enable -}} {{- end -}} {{- /* toc dialog button */ -}} {{- if .Store.Get "showToc" -}} {{- end -}} {{- /* comment button */ -}} {{- if $comment.enable -}} {{- end -}}
{{- end -}} {{- /* GitHub Corners */ -}} {{- $githubCorner := .Site.Params.githubCorner -}} {{- if $githubCorner.enable -}} {{- with $githubCorner -}} {{- $githubImage := `` -}} {{- $options := dict "Destination" .Permalink "Title" .Title "Content" $githubImage "ExternalIcon" false "Class" (cond (eq .Position "left") "left" "right" | printf "github-corner %v d-none-mobile") "Noreferrer" false -}} {{- partial "plugin/link.html" $options -}} {{- end -}} {{- end -}} {{- /* Search mask */ -}}
{{- /* Search dialog */ -}} {{- if .Site.Params.search.enable -}}
{{- end -}} {{- /* Reading progress bar */ -}} {{- $readingProgress := .Site.Params.readingProgress -}} {{- if $readingProgress.enable -}} {{- with $readingProgress -}} {{- $style := printf "%v: 0;%v: 0;" (.Start | default "left") (.Position | default "top") -}} {{- if .Height | and (ne .Height "2px") -}} {{- $style = printf "%v--fi-progress-h: %v;" $style .Height -}} {{- end -}} {{- if .Reversed -}} {{- $style = printf "%v%v" $style "width: calc(100% - var(--fi-progress));" -}} {{- end -}} {{- if .Light -}} {{- $style = printf "%v--fi-bg-progress: %v;" $style .Light -}} {{- end -}} {{- if .Dark -}} {{- $style = printf "%v--fi-bg-progress-dark: %v;" $style .Dark -}} {{- end -}}
{{- end -}} {{- end -}} {{- /* Link Guard Dialog */ -}} {{- $linkGuard := .Site.Params.link.guard -}} {{- with .Params.link_guard -}} {{- $linkGuard = (cond (reflect.IsMap .) . (dict "enable" .)) | merge $linkGuard -}} {{- end -}} {{- if $linkGuard.enable | and (eq $linkGuard.mode "modal") -}}

{{ dict "Title" .Site.Title | T "linkRedirection.message" }}

-

{{- end -}} {{- /* Custom widgets */ -}} {{- block "custom-widgets" . }}{{ end -}}
{{- /* EOF */ -}}