mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-26 20:16:17 +00:00
- exampleSite: Add featured images to talks and publications - exampleSite: Change default layouts to use stream layout Close #718
24 lines
792 B
HTML
24 lines
792 B
HTML
{{ $ := .root }}
|
|
{{ $page := .page }}
|
|
|
|
<!-- Selected Talks widget -->
|
|
<div class="row">
|
|
<div class="col-12 col-lg-4 section-heading">
|
|
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
|
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
</div>
|
|
<div class="col-12 col-lg-8">
|
|
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
|
|
{{ range (sort (where (where $.Site.RegularPages "Type" "talk") ".Params.selected" true) ".Params.time_start" "desc") }}
|
|
{{ if eq $page.Params.list_format 1 }}
|
|
{{ partial "talk_li_detailed" . }}
|
|
{{ else if eq $page.Params.list_format 2 }}
|
|
{{ partial "talk_li_stream" . }}
|
|
{{ else }}
|
|
{{ partial "talk_li_simple" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|