{{ define "body-class" }}article-page podcasts-page{{ end }} {{ define "main" }} {{- $lang := .Lang -}} {{- $data := .Site.Data.podcasts -}} {{/* Count by type */}} {{- $totalEntries := len $data.entries -}} {{- $podcastCount := 0 -}} {{- $liveCount := 0 -}} {{- $interviewCount := 0 -}} {{- range $data.entries -}} {{- if eq .type "podcast" -}} {{- $podcastCount = add $podcastCount 1 -}} {{- else if eq .type "live" -}} {{- $liveCount = add $liveCount 1 -}} {{- else if eq .type "interview" -}} {{- $interviewCount = add $interviewCount 1 -}} {{- end -}} {{- end -}}
{{/* ===== HEADER ===== */}}

{{- if eq $lang "fr" -}}Podcasts & Lives{{- else -}}Podcasts & Lives{{- end -}}

{{- if eq $lang "fr" -}} Mes participations à des podcasts, des live streams et des interviews. {{- else -}} My appearances on podcasts, live streams, and interviews. {{- end -}}

{{/* ===== STATS BANNER ===== */}}
{{ $totalEntries }} Total
{{ $podcastCount }} Podcasts
{{ $liveCount }} Lives
{{ $interviewCount }} Interviews
{{/* ===== ENTRIES LIST ===== */}}
{{- range $data.entries -}}
{{- if eq .type "podcast" -}} podcast {{- else if eq .type "live" -}} live {{- else if eq .type "interview" -}} interview {{- end -}}
{{ .title }} {{- if .note -}}

{{ index .note $lang | default (index .note "fr") }}

{{- end -}}
{{ (time .date).Year }}
{{- end -}}
{{/* ===== FOOTER ===== */}}
{{ partialCached "footer/footer" . }} {{ end }} {{/* No right sidebar on this page */}} {{ define "right-sidebar" }}{{ end }}