Merge pull request #165 from szpak/talksSubtitle2
Ability to display well formatter longer description in talks page
This commit is contained in:
commit
9bb9fc999e
|
@ -5,11 +5,21 @@
|
||||||
<h3 class="h3 terms__title">
|
<h3 class="h3 terms__title">
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</h3>
|
</h3>
|
||||||
|
{{ if not .Params.subtitle }}
|
||||||
<div>
|
<div>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
<main class="main archive">
|
<main class="main archive">
|
||||||
|
{{ if .Params.subtitle }}
|
||||||
|
<div class="archive__content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<h4 class="archive__subtitle">
|
||||||
|
{{ .Params.subtitle }}
|
||||||
|
</h4>
|
||||||
|
{{ end }}
|
||||||
<div class="archive__container">
|
<div class="archive__container">
|
||||||
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
|
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
|
||||||
{{ $paginator := .Paginate ($pages.GroupByPublishDate ($.Param "talksGroupByDate" | default "2006")) ($.Param "talksPaginate") }}
|
{{ $paginator := .Paginate ($pages.GroupByPublishDate ($.Param "talksGroupByDate" | default "2006")) ($.Param "talksPaginate") }}
|
||||||
|
|
Loading…
Reference in New Issue