better support talks header

This commit is contained in:
zzossig 2020-02-14 00:39:47 +09:00
parent 2e87f32d6e
commit f99646e95b
1 changed files with 5 additions and 10 deletions

View File

@ -5,20 +5,15 @@
<h3 class="h3 terms__title"> <h3 class="h3 terms__title">
{{ .Title }} {{ .Title }}
</h3> </h3>
{{ if not .Params.subtitle }} <div class="px py p2 terms__content">
<div>
{{ .Content }} {{ .Content }}
</div> </div>
{{ end }}
</header> </header>
<main class="main archive"> <main class="main archive">
{{ if .Params.subtitle }} {{ with .Params.subtitle }}
<div class="archive__content"> <h6 class="archive__subtitle h6">
{{ .Content }} {{ . }}
</div> </h6>
<h4 class="archive__subtitle">
{{ .Params.subtitle }}
</h4>
{{ end }} {{ end }}
<div class="archive__container"> <div class="archive__container">
{{ $pages := (where .Site.RegularPages "Section" "talks") }} {{ $pages := (where .Site.RegularPages "Section" "talks") }}