File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1+ {{ $ctx := . }}
2+ {{ $title_override := "" }}
3+ {{ if reflect.IsMap . }}
4+ {{ $ctx = .context }}
5+ {{ $title_override = .title }}
6+ {{ end }}
7+
18< div class ="author-bios-section mt-12 pt-8 ">
2- < h2 class ="text-3xl font-bold mb-8 "> About the Author{{ if gt (len $.Params.author) 1 }}s{{ end }}</ h2 >
3- {{ with .Params.author }}
9+ < h2 class ="text-3xl font-bold mb-8 ">
10+ {{ if $title_override }}
11+ {{ $title_override }}
12+ {{ else }}
13+ About the Author{{ if gt (len $ctx.Params.author) 1 }}s{{ end }}
14+ {{ end }}
15+ </ h2 >
16+ {{ with $ctx.Params.author }}
417 {{ $authors := . }}
518 {{ range $index, $authorName := $authors }}
619 {{ $isFirstAuthor := eq $index 0 }}
720 {{ $nameForSlug := $authorName | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
821 {{ $contributorSlug := $nameForSlug | anchorize }}
9- {{ $contributorPage := $.Site .GetPage (printf "contributors/%s" $contributorSlug) }}
22+ {{ $contributorPage := site .GetPage (printf "contributors/%s" $contributorSlug) }}
1023
1124 < div class ="author-bio-item mb-8 flex flex-col {{ if $isFirstAuthor }}md:flex-row{{ else }}md:flex-row{{ end }} items-start gap-6 ">
1225 {{ if $contributorPage }}
Original file line number Diff line number Diff line change 5050 {{ partial $sidebar_content_partial $page_context }}
5151 </ div >
5252
53- {{ if .Params.show_author_bios }}
53+ {{ $title := "About the Speaker" }}
54+ {{ with .Params.author }}
55+ {{ if gt (len .) 1 }}
56+ {{ $title = "About the Speakers" }}
57+ {{ end }}
58+ {{ end }}
59+
5460 < div class ="lg:col-10 mx-auto ">
55- {{ partial "components/author-bios.html" . }}
61+ {{ partial "components/author-bios.html" (dict "context" . "title" $title) }}
5662 </ div >
57- {{ else }}
58- {{ partial "components/speaker-details.html" . }}
59- {{ end }}
6063
6164 < div class ="lg:col-12 mt-16 ">
6265 {{ partial "components/content-contribute-cta.html" (dict
You can’t perform that action at this time.
0 commit comments