dot-hugo/layouts/index.html

49 lines
1.5 KiB
HTML
Raw Normal View History

{{ define "main" }}
2019-01-06 10:40:05 +00:00
{{ "<!-- topics -->" | safeHTML }}
<section class="section">
<div class="container">
2019-09-04 11:35:48 +00:00
<div class="row justify-content-center">
<div class="col-12 text-center">
<h2 class="section-title">{{ i18n "topics_title" | safeHTML }}</h2>
2019-01-06 10:40:05 +00:00
</div>
2019-09-04 11:35:48 +00:00
{{ "<!-- topic-item -->" | safeHTML }}
{{ range (where .Site.Pages "Type" "docs") }}
2019-09-04 11:35:48 +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">
<i class="{{ .Params.Icon }} icon text-primary d-block mb-4"></i>
<h3 class="mb-3 mt-0">{{ .Title }}</h3>
<p class="mb-0">{{ .Params.Description }}</p>
</a>
</div>
{{ end }}
</div>
2019-01-06 10:40:05 +00:00
</div>
</section>
{{ "<!-- /topics -->" | safeHTML }}
2019-01-06 10:40:05 +00:00
{{ if .Site.Params.cta.enable }}
{{ with .Site.Params.cta }}
{{ "<!-- call to action -->" | safeHTML }}
<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 }}
2019-01-06 10:40:05 +00:00
</div>
</div>
</div>
</div>
</section>
{{ "<!-- /call to action -->" | safeHTML }}
{{ end }}
{{ end }}
2019-01-06 10:40:05 +00:00
{{ end }}