website/layouts/docs/list.html
liuboaibc 8f466739bf update: fix bugs and update style
Signed-off-by: liuboaibc <kukudehero@gmail.com>
2020-09-23 16:01:28 +08:00

43 lines
1.2 KiB
HTML

{{ define "main" }}
{{ with .Params.section1 }}
<section class='section-1 bg-cover' style='background-image: url("{{ .image }}");'>
<div class="title-div common-layout">
<h1 class="title-h1">{{ .title }}</h1>
<p class="common-p">{{ .content }}</p>
<div class="search-div">
{{ partial "searchInput" . }}
</div>
</div>
</section>
{{ end }}
<section class="section-2">
<div class="common-layout">
{{ partial "section" . }}
</div>
</section>
{{ with .Params.section3 }}
<section class="section-3">
<div class="common-layout">
<div class="left-part-div">
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
<div class="common-flex-layout">
{{ range .list }}
<div>
<img src="{{ .image }}" alt="">
<p><a href="{{ .link }}">{{ .content }}</a></p>
</div>
{{ end }}
</div>
</div>
<div class="right-part-div">
<h3>{{ .titleRight }}</h3>
<a href="{{ .btnLink }}"><button>{{ .btnContent }}</button></a>
</div>
</div>
</section>
{{ end }}
{{ end }}