{{/* Table of Contents */}} {{- $toc := .Params.toc | default true -}} {{/* UI Text */}} {{- $on_this_page := T "on_this_page" }} {{- $edit_this_page := T "edit_page" }} {{/* Render Headings */}} {{- define "toc-headings" -}} {{- $headings := .headings -}} {{- $level := .level -}} {{- if ge $level 5 -}} {{ return }} {{- end -}} {{- $padding := (mul $level 4) -}}{{/* Requires inclusion in Tailwind safelist!! */}} {{- $class := cond (eq $level 0) "font-semibold" (printf "pl-%d rtl:pr-%d" $padding $padding) -}} {{- range $headings }} {{- if .Title }}