{{ 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 }} / {{ 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 }}
{{ . }}
{{ end }}