{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }} {{ define "header" }} {{ $discSlug := .RelPermalink | strings.TrimSuffix "/" | path.Dir | path.Base }} direito {{ range $.Site.Sections }} {{ if and (eq .Section "txts") (eq (.RelPermalink | strings.TrimSuffix "/" | path.Base) $discSlug) }} / {{ .Title }} {{ end }} {{ end }} / {{ .Title }} {{ end }} {{ define "main" }} {{ $slug := .File.BaseFileName }} {{ $discSlug := .RelPermalink | strings.TrimSuffix "/" | path.Dir | path.Base }} {{/* Encontra quiz do assunto (exercício, não simulado) */}} {{ $quizPage := false }} {{ range $.Site.RegularPages }} {{ if eq .Section "quizzes" }} {{ $parent := .File.Dir | strings.TrimSuffix "/" | path.Base }} {{ if and (eq $parent $discSlug) (eq .File.BaseFileName $slug) }} {{ if not (or (.Params.simulado) (in (.File.BaseFileName | lower) "simulado")) }} {{ $quizPage = . }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ range $.Site.Sections }} {{ if and (eq .Section "txts") (eq (.RelPermalink | strings.TrimSuffix "/" | path.Base) $discSlug) }} {{ .Title }} {{ end }} {{ end }} assunto

{{ .Title }}

{{/* Colapsáveis: guia de estudo e materiais do assunto */}} {{ $hasExtras := or .Params.guide (or .Params.files (or .Params.videos .Params.audios)) }} {{ if $hasExtras }}
{{ partial "disc-extras.html" . }}
{{ end }}
{{ .Content }}
{{/* Notas de rodapé — renderizadas pelo Hugo automaticamente no .Content; o floater (footnotes.js) intercepta os links #fn: e mostra tooltip */}} {{/* Questões do assunto — quiz inline embutido */}} {{ if $quizPage }}
exercícios deste assunto modo completo →
{{ end }} {{ if .Params.references }}
referências
{{ range .Params.references }}

{{ . }}

{{ end }}
{{ end }}
{{ end }}