dot-hugo/layouts/index.html

62 lines
1.9 KiB
HTML
Raw Normal View History

2021-10-31 04:31:58 +00:00
{{ define "main" }}
{{ if .Content }}
2022-01-30 05:10:45 +00:00
<section class="section text-center pb-0">
<div class="container">
{{ .Content }}
</div>
</section>
{{ end }}
2022-01-30 05:10:45 +00:00
<!-- topics -->
2021-10-31 04:31:58 +00:00
<section class="section">
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
2022-01-30 05:10:45 +00:00
<h2 class="section-title">{{ i18n "topics_title" | markdownify }}</h2>
2021-10-31 04:31:58 +00:00
</div>
2022-01-30 05:10:45 +00:00
<!-- topic-item -->
2021-10-31 04:31:58 +00:00
{{ range (where .Site.Pages "Type" "docs") }}
2022-01-30 05:10:45 +00:00
<div class="col-lg-4 col-sm-6 mb-4">
<a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height">
{{ with .Params.icon}}
<i class="{{.}} icon text-primary d-block mb-4"></i>
{{end}}
<h3 class="mb-3 mt-0">{{ .Title }}</h3>
{{with .Params.description}}
<p class="mb-0">{{. | markdownify}}</p>
{{end}}
</a>
</div>
2021-10-31 04:31:58 +00:00
{{ end }}
</div>
</div>
</section>
2022-01-30 05:10:45 +00:00
<!-- /topics -->
2021-10-31 04:31:58 +00:00
{{ if .Site.Params.cta.enable }}
2022-01-30 05:10:45 +00:00
{{ with .Site.Params.cta }}
<!-- call to action -->
<section>
<div class="container">
<div class="row">
<div class="col-12">
<div class="section px-3 bg-white shadow text-center">
<h2 class="mb-4">{{ .title | markdownify }}</h2>
<p class="mb-4">{{ .content | markdownify }}</p>
{{ if .button.enable }}
{{ with .button }}
<a href="{{ .link | relLangURL }}" class="btn btn-primary">{{ .label }}</a>
{{ end }}
{{ end }}
</div>
</div>
2021-10-31 04:31:58 +00:00
</div>
</div>
2022-01-30 05:10:45 +00:00
</section>
<!-- /call to action -->
{{ end }}
2021-10-31 04:31:58 +00:00
{{ end }}
{{ end }}