publiccode.si/site/layouts/partials/resources.html

28 lines
1.2 KiB
HTML

{{ "<!-- RESOURCES -->" | safeHTML }}
{{ $data := index .Site.Data .Site.Language.Lang }}
<section class="no-padding" id="resources">
<div class="container-fluid">
<h2 class="hidden">{{ .Site.Params.navigation.links.resources }}</h2>
<div class="row no-gutter">
{{ range $data.resources }}
<div class="col-lg-4 col-sm-6">
<a href="#{{ .shortLink }}" class="resources-box resources-link" data-toggle="modal">
<img src="/img/resources/{{ .img }}" class="img-responsive" alt="">
{{ if .title }}
<div class="resources-box-caption">
<div class="resources-box-caption-content">
{{ with .title }}
<div class="resource-name">
{{ . }}
</div>
{{ end }}
</div>
</div>
{{ end }}
</a>
</div>
{{ end }}
</div>
</div>
</section>