mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-26 02:14:13 +00:00
31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
{{ $ := .root }}
|
|
{{ $page := .page }}
|
|
{{ $talks_len := len (where $.Site.RegularPages "Type" "talk") }}
|
|
|
|
<!-- Talks widget -->
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-4 section-heading">
|
|
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
|
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
{{ if gt $talks_len $page.Params.count }}
|
|
<p class="view-all">
|
|
<a href="{{ ($.Site.GetPage "section" "talk").Permalink }}">
|
|
{{ i18n "more_talks" | markdownify }}
|
|
<i class="fa fa-angle-double-right"></i>
|
|
</a>
|
|
</p>
|
|
{{ end }}
|
|
</div>
|
|
<div class="col-xs-12 col-md-8">
|
|
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
|
|
{{ range first $page.Params.count (sort (where $.Site.RegularPages "Type" "talk") ".Params.time_start" "desc") }}
|
|
{{ if eq $page.Params.list_format 1 }}
|
|
{{ partial "talk_li_detailed" . }}
|
|
{{ else }}
|
|
{{ partial "talk_li_simple" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|