From 7316238f16655bd127b04476bbf7864b27f940f9 Mon Sep 17 00:00:00 2001 From: Sivaldo Date: Sat, 13 Jun 2026 19:20:23 -0300 Subject: Commit inicial --- layouts/partials/disc-extras.html | 72 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 layouts/partials/disc-extras.html (limited to 'layouts/partials/disc-extras.html') diff --git a/layouts/partials/disc-extras.html b/layouts/partials/disc-extras.html new file mode 100644 index 0000000..adff907 --- /dev/null +++ b/layouts/partials/disc-extras.html @@ -0,0 +1,72 @@ +{{/* disc-extras.html — recebe . (a página, seja _index ou single) + Renderiza colapsáveis: Guia de Estudo, Materiais (com subdivisões: Textos, Vídeos, Áudios) */}} + +{{/* ── Guia de estudo (guide) ── */}} +{{ with .Params.guide }} +
+ + guia de estudo + + +
+ {{ . | markdownify }} +
+
+{{ end }} + +{{/* ── Materiais unificados (files, videos, audios) ── */}} +{{ $files := .Params.files }} +{{ $videos := .Params.videos }} +{{ $audios := .Params.audios }} +{{ if or $files (or $videos $audios) }} +
+ + materiais + + {{ $n := 0 }} + {{ with $files }}{{ $n = add $n (len .) }}{{ end }} + {{ with $videos }}{{ $n = add $n (len .) }}{{ end }} + {{ with $audios }}{{ $n = add $n (len .) }}{{ end }} + {{ $n }} item{{ if gt $n 1 }}s{{ end }} + + + +
+ {{/* Textos (arquivos/links) */}} + {{ with $files }} +
textos
+ {{ range . }} + + + {{ .name }} + link + + {{ end }} + {{ end }} + + {{/* Vídeos */}} + {{ with $videos }} +
vídeos
+ {{ range . }} + + + {{ .name }} + youtube + + {{ end }} + {{ end }} + + {{/* Áudios */}} + {{ with $audios }} +
áudios
+ {{ range . }} + + + {{ .name }} + youtube + + {{ end }} + {{ end }} +
+
+{{ end }} -- cgit v1.2.3